mm: vmscan: evaluate the watermarks against the correct classzone
[linux-flexiantxendom0-natty.git] / mm / vmscan.c
index 7f8e890..136dc5e 100644 (file)
@@ -2279,7 +2279,7 @@ static bool sleeping_prematurely(pg_data_t *pgdat, int order, long remaining,
                }
 
                if (!zone_watermark_ok_safe(zone, order, high_wmark_pages(zone),
-                                                       classzone_idx, 0))
+                                                       i, 0))
                        all_zones_ok = false;
                else
                        balanced += zone->present_pages;