Re: [PATCH v3 06/11] mm/hugetlb: initialize all struct pages for bootmem hugepages
From: Oscar Salvador (SUSE)
Date: Mon Nov 23 2026 - 04:34:09 EST
On Fri, Nov 20, 2026 at 06:08:51PM +0800, Muchun Song wrote:
> Boot-time gigantic hugepages currently leave the head struct page to
> the generic memmap initialization path while the HugeTLB code
> initializes the remaining struct pages itself.
>
> Mark the full hugepage noinit and initialize the head struct page in
> hugetlb_folio_init_vmemmap() as well, so the whole compound-page setup
> is handled in one place.
>
> This can also reduce memblock metadata overhead when many boot-time
> HugeTLB pages are reserved, because physically contiguous hugepages
> can be covered by fewer noinit regions.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Acked-by: Oscar Salvador (SUSE) <osalvador@xxxxxxxxxx>
--
Oscar Salvador
SUSE Labs