From b532f4af34f0e0f96ee32803f1e5df02d5ae06bd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 11 Mar 2004 16:23:50 -0800 Subject: [PATCH] [PATCH] vmscan: zone balancing fix We currently have a problem with the balancing of reclaim between zones: much more reclaim happens against highmem than against lowmem. This patch partially fixes this by changing the direct reclaim path so it does not bale out of the zone walk after having reclaimed sufficient pages from highmem: go on to reclaim from lowmem regardless of how many pages we reclaimed from lowmem. --- mm/vmscan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index ccddf9ac3d59a..1b1e0fed82025 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -827,8 +827,6 @@ shrink_caches(struct zone **zones, int priority, int *total_scanned, max_scan = to_reclaim * 2; ret += shrink_zone(zone, max_scan, gfp_mask, to_reclaim, total_scanned, ps); - if (ret >= nr_pages) - break; } return ret; } -- 2.53.0