]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/vmscan.c
mm: multi-gen LRU: add helpers in page table walks
authorT.J. Alumbaugh <talumbau@google.com>
Mon, 22 May 2023 11:20:57 +0000 (11:20 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:40 +0000 (16:25 -0700)
commitbd02df412cbb9a63e945a647e3dbe4d6f9e06d19
tree89676432d8864a31b08c90385eb8e699d3c3f32b
parent5c7e7a0d79072eb02780a2c0dee730b23cde711d
mm: multi-gen LRU: add helpers in page table walks

Add helpers to page table walking code:
 - Clarifies intent via name "should_walk_mmu" and "should_clear_pmd_young"
 - Avoids repeating same logic in two places

Link: https://lkml.kernel.org/r/20230522112058.2965866-3-talumbau@google.com
Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
Reviewed-by: Yuanchu Xie <yuanchu@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c