diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2024-02-24 02:28:43 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-24 02:28:43 +0100 |
commit | 1f1183c4c0bc609c98b71ab9281ff72533d89bb0 (patch) | |
tree | 91b11f96af03037a7920a97b828c5ef8d7768ae5 /mm/migrate.c | |
parent | Docs/admin-guide/mm/damon/usage: fix wrong quotas diabling condition (diff) | |
parent | mm/debug_vm_pgtable: fix BUG_ON with pud advanced test (diff) | |
download | linux-1f1183c4c0bc609c98b71ab9281ff72533d89bb0.tar.xz linux-1f1183c4c0bc609c98b71ab9281ff72533d89bb0.zip |
merge mm-hotfixes-stable into mm-nonmm-stable to pick up stackdepot changes
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 8 |
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; |