Re: [PATCH v3] mm/page_alloc: clear page->private in free_pages_prepare()
From: David Hildenbrand (Arm)
Date: Sat Feb 07 2026 - 17:08:16 EST
- /*
- * page->private should not be set in tail pages. Fix up and warn once
- * if private is unexpectedly set.
- */
- if (unlikely(new_folio->private)) {
- VM_WARN_ON_ONCE_PAGE(true, new_head);
- new_folio->private = NULL;
- }
BTW, I wonder whether we should bring that check back for non-device folios.
--
Cheers,
David