]> www.infradead.org Git - users/willy/linux.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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Oct 2021 20:00:32 +0000 (16:00 -0400)
commit808cdf500532b2e288992a80083219319e445314
treed74959da87ddbd1f350538eeb7011e4d32b0b9b6
parent20f0f0f2f110383d2457a19967e84a325cb1917a
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