]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arch/arm64/kvm: Use vma_lookup() instead of find_vma_intersection()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 1 Mar 2021 19:28:44 +0000 (14:28 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 15 Apr 2021 14:37:32 +0000 (10:37 -0400)
Use the new vma_lookup() call for abstraction & code readability.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
arch/arm64/kvm/mmu.c

index cd4d51ae3d4a0d578166b7bdc610901cabf7c360..11069db817f0415f29284f63827c20ccce879ea7 100644 (file)
@@ -855,7 +855,7 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
 
        /* Let's check if we will get back a huge page backed by hugetlbfs */
        mmap_read_lock(current->mm);
-       vma = find_vma_intersection(current->mm, hva, hva + 1);
+       vma = vma_lookup(current->mm, hva);
        if (unlikely(!vma)) {
                kvm_err("Failed to find VMA for hva 0x%lx\n", hva);
                mmap_read_unlock(current->mm);