Re: [PATCH 6/8] mm/huge_memory: remove unnecessary VM_BUG_ON_PAGE()

From: Baolin Wang

Date: Thu Mar 19 2026 - 03:12:36 EST




On 3/19/26 4:39 AM, Lorenzo Stoakes (Oracle) wrote:
This has been around since the beginnings of the THP implementation. I
think we can safely assume that, if we have a THP folio, it will have a
head page.

Signed-off-by: Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>
---

Yes, it is under the PTL, so the PMD entry should be stable. I also can't think of any case where it can be not a head page.

Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>