[PATCHv6 11/17] mm/hugetlb: Remove fake head pages

David Hildenbrand (Arm) david at kernel.org
Fri Feb 6 01:14:41 PST 2026


> -/*
> - * Populate vmemmap pages HVO-style. The first page contains the head
> - * page and needed tail pages, the other ones are mirrors of the first
> - * page.
> - */
> +static __meminit unsigned long vmemmap_get_tail(unsigned int order, int node)
> +{
> +	struct page *p, *tail;
> +	unsigned int idx;
> +
> +	BUG_ON(order < VMEMMAP_TAIL_MIN_ORDER);
> +	BUG_ON(order > MAX_FOLIO_ORDER);

No BUG_ON.

-- 
Cheers,

David



More information about the linux-riscv mailing list