]> 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>
Mon, 14 Mar 2022 18:49:45 +0000 (14:49 -0400)
commit6ed56ce21fd732ca5a03942436a8029dc8c8a8e0
treea16f8fdd0a8a8b1c4ea3bf5ed6470b260aa115c2
parent990955724818130287462420d4f8e77527abbf46
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>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/mm.h