aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-01-03 04:13:49 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-03 04:13:49 -0800
commitaa0baf358a2becbbdef017d4db5a8fca9a6feb0a (patch)
tree9e2a2c1c6384f745517d079cc49e080ef62a90fc /mm
parentcdd39d34f624faf137eafe92e78fac304e3d142a (diff)
downloadhistory-aa0baf358a2becbbdef017d4db5a8fca9a6feb0a.tar.gz
[PATCH] vmscan: total_scanned fix
We haven't been incrementing local variable total_scanned since the scan_control stuff went in. That broke kswapd throttling. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 585c0cff921b9f..aa074e53f0aa53 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1063,6 +1063,7 @@ scan:
shrink_slab(sc.nr_scanned, GFP_KERNEL, lru_pages);
sc.nr_reclaimed += reclaim_state->reclaimed_slab;
total_reclaimed += sc.nr_reclaimed;
+ total_scanned += sc.nr_scanned;
if (zone->all_unreclaimable)
continue;
if (zone->pages_scanned >= (zone->nr_active +