Re: [PATCHv6 14/17] mm/hugetlb: Remove hugetlb_optimize_vmemmap_key static key

David Hildenbrand (Arm)
2026-02-06T09:43:06Z

On 2/2/26 16:56, Kiryl Shutsemau 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@kernel.org>
> Reviewed-by: Muchun Song <muchun.song@linux.dev>

Acked-by: David Hildenbrand (Arm) <david@kernel.org>

--
Cheers,

David