[PATCH RFC v2 08/20] mm: vmscan: remove stack copy address of pud pass in wallk_pud_range()
Yeoreum Yun <[email protected]> Wed, 22 Jul 2026 16:30:16 +0100
| Newsgroups | org.kernel.vger.linux-openrisc,dev.linux.lists.loongarch,org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-arch,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mips,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
The behaviour of pXdp_get() will change with generic compile-time folded page tables. To prepare for that, replace passing the address of a stack copy of a pXd to walk_pmd_range() with passing the pud pointer directly, allowing folded entries to be ignored. There should be no functional change. Signed-off-by: Yeoreum Yun <[email protected]> --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 06e103f9781e..0c9c4ac89e09 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3727,7 +3727,7 @@ static int walk_pud_range(p4d_t *p4d, unsigned long start, unsigned long end, if (!pud_present(val) || WARN_ON_ONCE(pud_leaf(val))) continue; - walk_pmd_range(&val, addr, next, args); + walk_pmd_range(pud + i, addr, next, args); if (need_resched() || walk->batched >= MAX_LRU_BATCH) { end = (addr | ~PUD_MASK) + 1; -- 2.43.0