]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Optimize find_exact_vma() to use vma_lookup()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:15:00 +0000 (16:15 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 26 Nov 2021 19:50:29 +0000 (14:50 -0500)
commit0c24855c4b229d32d22ef9575b07c80396d40147
tree8613cc33fc30bddbe8bdf13a37444bca8475b8d4
parent0646da222c23b0feca0b94be896d55b384fb84eb
mm: Optimize find_exact_vma() to use vma_lookup()

Use vma_lookup() to walk the tree to the start value requested.  If
the vma at the start does not match, then the answer is NULL and there
is no need to look at the next vma the way that find_vma() would.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/mm.h