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

From: David Hildenbrand (Arm)

Date: Fri Feb 06 2026 - 04:19:01 EST



-/*
- * 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