]> 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>
Wed, 20 Oct 2021 19:22:33 +0000 (15:22 -0400)
commit16b810e87450b67dfa7f541f5b24848e8381f4cd
tree751fd59c97d7534a92af136fe2f9674918c4370a
parent9762416209ed6e1f3b6fcbb686e4e1d769532ac4
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