Commit 4bdcb701 authored by Thomas Meyer's avatar Thomas Meyer Committed by Paul Mackerras

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: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent 4bb817ed
...@@ -377,7 +377,7 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500, ...@@ -377,7 +377,7 @@ static inline int kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500,
start = vma->vm_pgoff; start = vma->vm_pgoff;
end = start + end = start +
((vma->vm_end - vma->vm_start) >> PAGE_SHIFT); vma_pages(vma);
pfn = start + ((hva - vma->vm_start) >> PAGE_SHIFT); pfn = start + ((hva - vma->vm_start) >> PAGE_SHIFT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment