[PATCH v2 4/6] mm/sparse-vmemmap: Pass @pgmap argument to arch vmemmap_populate()

Muchun Song muchun.song at linux.dev
Wed Apr 15 22:21:45 AEST 2026



> On Apr 15, 2026, at 20:13, Joao Martins <joao.m.martins at oracle.com> wrote:
> 
> On 15/04/2026 12:14, Muchun Song wrote:
>> Add the struct dev_pagemap pointer as a parameter to the architecture
>> specific vmemmap_populate(), vmemmap_populate_hugepages() and
>> vmemmap_populate_basepages() functions.
>> 
>> Currently, the vmemmap optimization for DAX is handled mostly in an
>> architecture-agnostic way via vmemmap_populate_compound_pages().
>> However, this approach skips crucial architecture-specific initialization
>> steps. For example, the x86 path must call sync_global_pgds() after
>> populating the vmemmap, which is currently being bypassed.
>> 
> 
> Harry's series fixed in a different way (for x86):
> 
> https://lore.kernel.org/linux-mm/20250818020206.4517-1-harry.yoo@oracle.com/#t

Thanks for your information. It indeed fixes the page table sync issue.

I'll drop this one int the next version.

Thanks,
Muhcun


More information about the Linuxppc-dev mailing list