Re: [PATCH 16/17] mm/hugetlb: localize struct huge_bootmem_page
From: Mike Rapoport
Date: Wed Jul 15 2026 - 01:14:37 EST
On Thu, 02 Jul 2026 17:38:20 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> struct huge_bootmem_page is only used by hugetlb boot-time allocation
> code, but its definition currently lives in mm/internal.h because
> hugetlb_vmemmap_optimize_bootmem_page() takes it as an argument. This
> exposes a hugetlb-specific internal type more broadly than needed.
>
> Change hugetlb_vmemmap_optimize_bootmem_page() to take the information it
> actually needs. With that interface, mm/hugetlb_vmemmap.h no longer needs
> to include mm/internal.h, and struct huge_bootmem_page can move into
> mm/hugetlb.c.
>
> [...]
Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
--
Sincerely yours,
Mike.