arch-powerpc-kvm-book3s-use-vma_lookup-in-kvmppc_hv_setup_htab_rma.patch removed from -mm tree
The patch titled
Subject: arch/powerpc/kvm/book3s: use vma_lookup() in kvmppc_hv_setup_htab_rma()
has been removed from the -mm tree. Its filename was
arch-powerpc-kvm-book3s-use-vma_lookup-in-kvmppc_hv_setup_htab_rma.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Liam Howlett <[email protected]>
Subject: arch/powerpc/kvm/book3s: use vma_lookup() in kvmppc_hv_setup_htab_rma()
Using vma_lookup() removes the requirement to check if the address is within the returned vma. The code is easier to understand and more compact.
Signed-off-by Liam R. Howlett <[email protected]>
Reviewed-by Laurent Dufour <[email protected]>
Acked-by Davidlohr Bueso <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/powerpc/kvm/book3s_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kvm/book3s_hv.c renamed from arch/powerpc/kvm/book3s_hv.c~arch-powerpc-kvm-book3s-use-vma_lookup-in-kvmppc_hv_setup_htab_rma +2 -2
@@ -4758,8 +4758,8 @@ static int kvmppc_hv_setup_htab_rma(stru/* Look up the VMA for the start of this memory slot */ hva = memslot->userspace_addr;mmap_read_lock (kvm->mm); - vma =find_vma (kvm->mm, hva); -if (!vma || vma->vm_start > hva || (vma->vm_flags &VM_IO )) + vma =vma_lookup (kvm->mm, hva); +if (!vma || (vma->vm_flags &VM_IO )) goto up_out; psize =vma_kernel_pagesize (vma);
_
Patches currently in -mm which might be from [email protected] are