]> 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>
Wed, 20 Jul 2022 02:17:50 +0000 (02:17 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 6 Sep 2022 19:44:22 +0000 (15:44 -0400)
commit3cb43f7870b990e38cb0f9d366d019cd7bb69bf3
treef67c75cbdb82b367fff7651fe3fc4f7bc9ca0ffc
parentf9ce2b57be64f576ee978092ce88ca6520522550
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