]> 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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 30 Oct 2021 03:38:42 +0000 (23:38 -0400)
commitbc37308227c7b787f0726c99759e57e224d296ad
tree222140e69e6bcdebad17349bd93b3e4062fd644b
parentf08546e04e9216e9e5b438d13418e15a2e93e767
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