Re: [PATCH] mm/hugetlb: use hugetlb_vmemmap_optimizable() in boolean contexts
From: Muchun Song
Date: Mon Aug 24 2026 - 22:06:25 EST
> On Aug 24, 2026, at 23:16, Kaitao Cheng <kaitao.cheng@xxxxxxxxx> wrote:
>
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> The two boot-time sites in hugetlb_hstate_alloc_pages_onenode() and
> hugetlb_pages_alloc_boot_node() only need to know whether HVO is
> applicable, not the exact optimizable size. Switch them from
> hugetlb_vmemmap_optimizable_size() to hugetlb_vmemmap_optimizable()
> to make intent explicit.
>
> No functional change intended.
>
> Signed-off-by: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>
Thanks.