]> 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, 16 Dec 2021 03:01:33 +0000 (22:01 -0500)
commit83c508c3ad6e915695455d3a0109df89168cbb5b
tree6ad77b266c5b831d6279430187ef042c9fbdea86
parent9495dbdb42f5102fccca4f0247b2c4962c938cb3
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