]> 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>
Fri, 1 Oct 2021 16:41:53 +0000 (12:41 -0400)
commit717c00954d32e718160ee18aa6e102a6a29c9e21
tree0a153056f6444ec41088f3fce3d33625dac87373
parent1c9ede774efcd3247ec3195b847b90f9530c7123
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