Commit e1dbeda6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] balance_pdgat() cleanup

Despaghettify balance_pdgat() a bit.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cc102509
...@@ -1172,11 +1172,12 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order) ...@@ -1172,11 +1172,12 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order)
if (!zone_watermark_ok(zone, order, zone->pages_high, if (!zone_watermark_ok(zone, order, zone->pages_high,
0, 0)) { 0, 0)) {
end_zone = i; end_zone = i;
goto scan; break;
} }
} }
if (i < 0)
goto out; goto out;
scan:
for (i = 0; i <= end_zone; i++) { for (i = 0; i <= end_zone; i++) {
struct zone *zone = pgdat->node_zones + i; struct zone *zone = pgdat->node_zones + i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment