]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] balance_pdgat() cleanup
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Dec 2006 04:32:01 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:21 +0000 (08:39 -0800)
Despaghettify balance_pdgat() a bit.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c

index 518540a4a2a66a1ade20312d1d655ba6923e05b5..2e97baa3b2aa4923d54e0a4818d98e55cd5cc606 100644 (file)
@@ -1172,11 +1172,12 @@ loop_again:
                        if (!zone_watermark_ok(zone, order, zone->pages_high,
                                               0, 0)) {
                                end_zone = i;
-                               goto scan;
+                               break;
                        }
                }
-               goto out;
-scan:
+               if (i < 0)
+                       goto out;
+
                for (i = 0; i <= end_zone; i++) {
                        struct zone *zone = pgdat->node_zones + i;