Re: [PATCH v3 18/19] mm/hugetlb: Remove unused bootmem cma field

From: Mike Rapoport

Date: Tue Jun 02 2026 - 11:52:34 EST


On Tue, 02 Jun 2026 18:10:38 +0800, Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
> struct huge_bootmem_page no longer needs to keep the CMA pointer. The
> bootmem path only needs to remember whether a huge page came from CMA,
> which is already encoded in the flags field.
>
> Set HUGE_BOOTMEM_CMA when the page is allocated and drop the unused cma
> field together with the redundant assignments.

It looks like the commit does more refactoring, please mention it in the
changelog.

--
Sincerely yours,
Mike.