]> 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>
Thu, 24 Jun 2021 20:04:21 +0000 (16:04 -0400)
commitab331d0848b11d2cf6654a6a4755f7142ff294a6
tree391f8d49e732fcc4dac1f7bb7750583b29f28a85
parent315a5fb2ac4d760ad9c7ce2db36ac85852118669
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