Re: [PATCH 3/6] mm/sparse-vmemmap: drop Device DAX-specific population path

From: Qi Zheng

Date: Tue Sep 22 2026 - 04:07:07 EST




On 9/13/26 4:37 PM, Muchun Song wrote:
The common vmemmap path selects the shared page for optimized mappings
itself, so Device DAX no longer needs vmemmap_populate_compound_pages()
to find a shared tail page and pass its backing PFN through the generic
population helpers.

Remove the Device DAX-specific population path and let section memmap
population always use vmemmap_populate(). The powerpc retains an
architecture-specific compound-page implementation, so select it directly
from radix__vmemmap_populate() for optimizable sections.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
---
arch/powerpc/mm/book3s64/radix_pgtable.c | 3 +
mm/mm_init.c | 2 +-
mm/sparse-vmemmap.c | 71 +-----------------------
3 files changed, 5 insertions(+), 71 deletions(-)

Acked-by: Qi Zheng <qi.zheng@xxxxxxxxx>

Thanks,
Qi