summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-09-21 00:29:36 +0200
committerPaul Mackerras <paulus@ozlabs.org>2017-10-14 13:39:49 +1100
commit4bdcb7016f95dd7668cd2f55f494ba449443e8d7 (patch)
tree550ea00dc5d319f0358ec449d6b333be9e9607c6 /arch/powerpc/kvm
parent4bb817ed833c070e5b5ee0482f74e2a5e1a12c4c (diff)
downloadlinux-rt-4bdcb7016f95dd7668cd2f55f494ba449443e8d7.tar.gz
KVM: PPC: BookE: Use vma_pages function
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r--arch/powerpc/kvm/e500_mmu_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c
index c6c734424c70..423b21393bc9 100644
--- a/arch/powerpc/kvm/e500_mmu_host.c
+++ b/arch/powerpc/kvm/e500_mmu_host.c
@@ -377,7 +377,7 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
start = vma->vm_pgoff;
end = start +
- ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT);
+ vma_pages(vma);
pfn = start + ((hva - vma->vm_start) >> PAGE_SHIFT);