|
|
@@ -3209,11 +3209,8 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx)
|
|
|
|
|
|
sc.nr_reclaimed = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Scan in the highmem->dma direction for the highest
|
|
|
- * zone which needs scanning
|
|
|
- */
|
|
|
- for (i = pgdat->nr_zones - 1; i >= 0; i--) {
|
|
|
+ /* Scan from the highest requested zone to dma */
|
|
|
+ for (i = classzone_idx; i >= 0; i--) {
|
|
|
struct zone *zone = pgdat->node_zones + i;
|
|
|
|
|
|
if (!populated_zone(zone))
|