From: "Gregory Price (Meta)" 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) --- 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