]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:21:58 +0000 (16:21 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 24 Jun 2021 20:04:21 +0000 (16:04 -0400)
commit9f9395a022938f809bb7a6c8889b4875368e0632
tree34c2813f5b4a4010a7b6a37139b51c05d34227d3
parentab331d0848b11d2cf6654a6a4755f7142ff294a6
mm/khugepaged: Optimize collapse_pte_mapped_thp() by using vma_lookup()

vma_lookup() will walk the vma tree once and not continue to look for
the next vma.  Since the exact vma is checked below, this is a more
optimal way of searching.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/khugepaged.c