summaryrefslogtreecommitdiff
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2024-02-24 04:28:43 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-02-24 04:28:43 +0300
commit1f1183c4c0bc609c98b71ab9281ff72533d89bb0 (patch)
tree91b11f96af03037a7920a97b828c5ef8d7768ae5 /mm/migrate.c
parent7d8cebb9630af71f04cb27314a4effbc0f4f8648 (diff)
parent720da1e593b85a550593b415bf1d79a053133451 (diff)
downloadlinux-1f1183c4c0bc609c98b71ab9281ff72533d89bb0.tar.xz
merge mm-hotfixes-stable into mm-nonmm-stable to pick up stackdepot changes
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 05d6ca437321..73a052a382f1 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -2522,6 +2522,14 @@ static int numamigrate_isolate_folio(pg_data_t *pgdat, struct folio *folio)
if (managed_zone(pgdat->node_zones + z))
break;
}
+
+ /*
+ * If there are no managed zones, it should not proceed
+ * further.
+ */
+ if (z < 0)
+ return 0;
+
wakeup_kswapd(pgdat->node_zones + z, 0,
folio_order(folio), ZONE_MOVABLE);
return 0;