[PATCH 07/15] mm/page_isolation: use folio_page() in page_is_unmovable()
From: Nilay Vaish
Date: Tue Sep 29 2026 - 17:58:53 EST
As part of the memdescs effort, struct folio will be allocated
separately from struct page and will no longer overlay the head page.
Replace &folio->page with folio_page(folio, 0) when passing the head
page to compound_order() in page_is_unmovable(). Keep compound_order()
rather than folio_order() since page_is_unmovable() inspects pages
without holding a folio reference.
No functional change intended.
Assisted-by: LLM
Signed-off-by: Nilay Vaish <nilayvaish@xxxxxxxxxx>
---
mm/page_isolation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_isolation.c b/mm/page_isolation.c
index 5aaad037384e..29c9e108b2e5 100644
--- a/mm/page_isolation.c
+++ b/mm/page_isolation.c
@@ -47,7 +47,7 @@ bool page_is_unmovable(struct zone *zone, struct page *page,
unsigned long nr_pages, pfn;
unsigned int order;
- order = compound_order(&folio->page);
+ order = compound_order(folio_page(folio, 0));
if (order > MAX_FOLIO_ORDER)
return true;
--
2.56.0.rc1.315.gc6ed9934b7-goog