KVM: set no_llseek in stat_fops_per_vm
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:37:19 +0000 (23:37 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 May 2017 09:48:23 +0000 (11:48 +0200)
commit3bed8888edc8f60d734c44fdcdb7c6abd5e2d02e
tree03a6ad9107fe3687cf105c1fcf6de9a6b64a9a60
parent2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2
KVM: set no_llseek in stat_fops_per_vm

In vm_stat_get_per_vm_fops and vcpu_stat_get_per_vm_fops, since we
use nonseekable_open() to open, we should use no_llseek() to seek,
not generic_file_llseek().

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c