Re: [PATCH v5 03/17] mm/mm_init: skip initializing shared vmemmap tail pages
From: Mike Rapoport
Date: Tue Aug 25 2026 - 05:35:02 EST
On Tue, 25 Aug 2026 16:45:54 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> memmap_init_range() initializes every struct page in the target range.
> For compound pages with vmemmap optimization, the tail struct pages are
> backed by a shared vmemmap page.
>
> Initializing those tail struct pages would overwrite the shared
> vmemmap page contents, requiring users such as HugeTLB to restore the
> metadata afterwards.
>
> [...]
Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
--
Sincerely yours,
Mike.