summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-12-06 20:32:01 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 08:39:21 -0800
commite1dbeda60a7ea9e82a908d93c07308d104d50d79 (patch)
treef83d342064a72336bf37fb6bb8bdf5fc9fc47c10 /mm
parentcc102509074bba0316f2b5deebd7ef4447da295e (diff)
downloadop-kernel-dev-e1dbeda60a7ea9e82a908d93c07308d104d50d79.zip
op-kernel-dev-e1dbeda60a7ea9e82a908d93c07308d104d50d79.tar.gz
[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>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 518540a..2e97baa 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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;
OpenPOWER on IntegriCloud