vmscan: count pages into balanced for zone with good watermark
[pandora-kernel.git] / mm / vmscan.c
index a297603..77ee24f 100644 (file)
@@ -2748,6 +2748,8 @@ out:
 
                        /* If balanced, clear the congested flag */
                        zone_clear_flag(zone, ZONE_CONGESTED);
+                       if (i <= *classzone_idx)
+                               balanced += zone->present_pages;
                }
        }