[PATCH] fixup for mm/page_isolation: remove migratetype from move_freepages_block_isolate()
From: Zi Yan
Date: Thu May 08 2025 - 15:23:42 EST
1. replace get_pageblock_isolate() with
get_pageblock_migratetype() == MIGRATE_ISOLATE, a
get_pageblock_isolate() becomes private in mm/page_isolation.c
Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b502e4a3afbe..c99b77fdf383 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1975,7 +1975,7 @@ static bool __move_freepages_block_isolate(struct zone *zone,
int from_mt;
int to_mt;
- if (isolate == get_pageblock_isolate(page))
+ if (isolate == (get_pageblock_migratetype(page) == MIGRATE_ISOLATE))
return false;
if (!prep_move_freepages_block(zone, page, &start_pfn, NULL, NULL))
--
2.47.2
Best Regards,
Yan, Zi