Re: [PATCH v3 04/11] mm/mm_init: factor out compound page initialization

From: Mike Rapoport

Date: Sun Nov 22 2026 - 10:45:23 EST


On Fri, 20 Nov 2026 18:08:49 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> ZONE_DEVICE initializes compound struct pages while their refcounts remain
> frozen. The setup is open-coded in memmap_init_compound(), including the
> per-page initialization and compound tail preparation.
>
> Factor the common setup into memmap_init_compound_page(). Keep the pgmap
> association and MEMORY_DEVICE_GENERIC refcount handling in the
> ZONE_DEVICE-specific path.
>
> [...]

Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

--
Sincerely yours,
Mike.