[PATCH 26/60] mm/migrate: leave pages outside common memory in move_pages()
From: Gregory Price via B4 Relay
Date: Fri Nov 20 2026 - 13:13:04 EST
From: "Gregory Price (Meta)" <gourry@xxxxxxxxxx>
move_pages(2) moves the pages a caller names, and reports the node of
each page in status queries.
Leave pages outside common memory where they are: refuse to move them,
similar to ZONE_DEVICE pages. Status queries move nothing, so they
still report the node of each page.
Signed-off-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>
---
mm/migrate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index 208788b130fa..ac583afa1bc5 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -2287,7 +2287,7 @@ static int __add_folio_for_migration(struct folio *folio, int node,
if (is_zero_folio(folio) || is_huge_zero_folio(folio))
return -EFAULT;
- if (folio_is_zone_device(folio))
+ if (!folio_is_common_memory(folio))
return -ENOENT;
if (folio_nid(folio) == node)
--
2.56.1