Re: [PATCHv2 12/14] mm/hugetlb: Remove hugetlb_optimize_vmemmap_key static key

From: Muchun Song

Date: Mon Dec 22 2025 - 01:03:47 EST




> On Dec 18, 2025, at 23:09, Kiryl Shutsemau <kas@xxxxxxxxxx> wrote:
>
> The hugetlb_optimize_vmemmap_key static key was used to guard fake head
> detection in compound_head() and related functions. It allowed skipping
> the fake head checks entirely when HVO was not in use.
>
> With fake heads eliminated and the detection code removed, the static
> key serves no purpose. Remove its definition and all increment/decrement
> calls.
>
> Signed-off-by: Kiryl Shutsemau <kas@xxxxxxxxxx>

Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>

Thanks.