diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-02-03 15:06:08 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 17:59:02 +0100 |
commit | eed05e54d275b3cfc5d8c79843c5276a5878e94a (patch) | |
tree | ec7411a6713c845154731e0cd66a55adc501e792 /mm/page_idle.c | |
parent | mm: Add folio_pgoff() (diff) | |
download | linux-eed05e54d275b3cfc5d8c79843c5276a5878e94a.tar.xz linux-eed05e54d275b3cfc5d8c79843c5276a5878e94a.zip |
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>
Diffstat (limited to 'mm/page_idle.c')
-rw-r--r-- | mm/page_idle.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/page_idle.c b/mm/page_idle.c index edead6a8a5f9..3e05bf1ce825 100644 --- a/mm/page_idle.c +++ b/mm/page_idle.c @@ -48,11 +48,7 @@ static bool page_idle_clear_pte_refs_one(struct page *page, struct vm_area_struct *vma, unsigned long addr, void *arg) { - struct page_vma_mapped_walk pvmw = { - .page = page, - .vma = vma, - .address = addr, - }; + DEFINE_PAGE_VMA_WALK(pvmw, page, vma, addr, 0); bool referenced = false; while (page_vma_mapped_walk(&pvmw)) { |