mm: vmscan: fix do_try_to_free_pages() livelock
[linux-2.6-block.git] / mm / migrate.c
index 61f14a1923fd6044f7435498fd7cc9d0a0eebc9f..b7ded7eafe3a00c998855944270a65c541ebea80 100644 (file)
@@ -1471,7 +1471,7 @@ static bool migrate_balanced_pgdat(struct pglist_data *pgdat,
                if (!populated_zone(zone))
                        continue;
 
-               if (zone->all_unreclaimable)
+               if (!zone_reclaimable(zone))
                        continue;
 
                /* Avoid waking kswapd by allocating pages_to_migrate pages. */