]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix the kswapd zone scanning algorithm
authorAndrew Morton <akpm@osdl.org>
Fri, 12 Mar 2004 00:24:52 +0000 (16:24 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 12 Mar 2004 00:24:52 +0000 (16:24 -0800)
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

index d271b722a631f06fe6f3abf311c46d2dd8a88e51..96e82a46260d1f1fd83e94253a253bed56ba40da 100644 (file)
@@ -970,8 +970,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;