projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb817e
)
KVM: PPC: BookE: Use vma_pages function
author
Thomas Meyer
<thomas@m3y3r.de>
Wed, 20 Sep 2017 22:29:36 +0000
(
00:29
+0200)
committer
Paul Mackerras
<paulus@ozlabs.org>
Sat, 14 Oct 2017 02:39:49 +0000
(13:39 +1100)
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>
arch/powerpc/kvm/e500_mmu_host.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/e500_mmu_host.c
b/arch/powerpc/kvm/e500_mmu_host.c
index c6c734424c707002810ccf59d78c6cb670c74555..423b21393bc9c10f026d2ecade35447f10ec6b4a 100644
(file)
--- 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);