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. --- mm/vmscan.c | 2 -- 1 files changed, 2 deletions(-) diff -puN mm/vmscan.c~kswapd-avoid-higher-zones-reverse-direction-fix mm/vmscan.c --- 25/mm/vmscan.c~kswapd-avoid-higher-zones-reverse-direction-fix 2004-03-02 01:46:49.000000000 -0800 +++ 25-akpm/mm/vmscan.c 2004-03-02 01:46:57.000000000 -0800 @@ -972,8 +972,6 @@ scan: 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; _