]> 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, 14 Apr 2022 06:07:15 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:15 +0000 (23:07 -0700)
commit2b6b66b372dceca2b24fa603e0a2d8d317e73588
tree9980af6e81a5b0e9c8bf26d93aac5eb42bb6a285
parentd8ca2b7e2d64ceb6d56cfbc5d20ffa8e7a09341a
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.

Link: https://lkml.kernel.org/r/20220404143501.2016403-24-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/khugepaged.c