[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>
This commit is contained in:
parent
cc10250907
commit
e1dbeda60a
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
goto out;
|
if (i < 0)
|
||||||
scan:
|
goto out;
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue