Re: [PATCH v3 02/11] mm/mm_init: factor out common struct page initialization
From: Mike Rapoport
Date: Sun Nov 22 2026 - 10:45:14 EST
On Fri, 20 Nov 2026 18:08:47 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> Several struct page fields have the same initial values for every page in
> a zone. __init_single_page() initializes this state as part of its
> per-page setup, while the shared vmemmap tail path open-codes only a
> subset.
>
> Factor the PFN-independent state into memmap_init_page() and use it for
> both regular and shared tail struct pages. Keep section-, PFN- and
> instance-specific initialization in __init_single_page().
>
> [...]
Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
--
Sincerely yours,
Mike.