]> 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>
Tue, 8 Mar 2022 18:19:10 +0000 (13:19 -0500)
commit2cb7f94d23af7aca37b7b338f6894f3ebd28db71
treedcde457068c4efc7cb9a32fba15e7ed4b4e811dd
parent7943cf38b223986879abdc99a9e12c545363ae08
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