aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-12-06 23:32:01 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:21 -0500
commite1dbeda60a7ea9e82a908d93c07308d104d50d79 (patch)
treef83d342064a72336bf37fb6bb8bdf5fc9fc47c10
parentcc102509074bba0316f2b5deebd7ef4447da295e (diff)
[PATCH] balance_pdgat() cleanup
Despaghettify balance_pdgat() a bit. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--mm/vmscan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 518540a4a2a6..2e97baa3b2aa 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1172,11 +1172,12 @@ loop_again:
1172 if (!zone_watermark_ok(zone, order, zone->pages_high, 1172 if (!zone_watermark_ok(zone, order, zone->pages_high,
1173 0, 0)) { 1173 0, 0)) {
1174 end_zone = i; 1174 end_zone = i;
1175 goto scan; 1175 break;
1176 } 1176 }
1177 } 1177 }
1178 goto out; 1178 if (i < 0)
1179scan: 1179 goto out;
1180
1180 for (i = 0; i <= end_zone; i++) { 1181 for (i = 0; i <= end_zone; i++) {
1181 struct zone *zone = pgdat->node_zones + i; 1182 struct zone *zone = pgdat->node_zones + i;
1182 1183