Re: [PATCH v2 4/6] mm/sparse-vmemmap: Pass @pgmap argument to arch vmemmap_populate()
From: Muchun Song
Date: Wed Apr 15 2026 - 08:22:47 EST
> On Apr 15, 2026, at 20:13, Joao Martins <joao.m.martins@xxxxxxxxxx> 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@xxxxxxxxxx/#t
Thanks for your information. It indeed fixes the page table sync issue.
I'll drop this one int the next version.
Thanks,
Muhcun