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

[PATCH] fix the kswapd zone scanning algorithm

This removes a vestige of the old algorithm.  We don't want to skip zones if
all_zones_ok is true: we've already precalculated which zones need scanning
and this just stops us from ever performing kswapd reclaim from the DMA zone.
parent 519ab68b
......@@ -970,8 +970,6 @@ static int balance_pgdat(pg_data_t *pgdat, int nr_pages, struct page_state *ps)
if (nr_pages == 0) { /* Not software suspend */
if (zone->free_pages <= zone->pages_high)
all_zones_ok = 0;
if (all_zones_ok)
continue;
}
zone->temp_priority = priority;
max_scan = zone->nr_inactive >> priority;
......
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