mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALK
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 3 Feb 2022 14:06:08 +0000 (09:06 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commiteed05e54d275b3cfc5d8c79843c5276a5878e94a
treeec7411a6713c845154731e0cd66a55adc501e792
parentf087b903fc2e4975bff9742a66ee7a837a2f545b
mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALK

Instead of declaring a struct page_vma_mapped_walk directly,
use these helpers to allow us to transition to a PFN approach in the
following patches.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rmap.h
kernel/events/uprobes.c
mm/damon/paddr.c
mm/ksm.c
mm/migrate.c
mm/page_idle.c
mm/rmap.c