aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-06-16 18:32:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-16 22:47:39 -0400
commit6e08a369ee10b361ac1cdcdf4fabd420fd08beb3 (patch)
tree9dbf870cad025b64781d9051b6680a8a23927e5a /mm/page_alloc.c
parent56e49d218890f49b0057710a4b6fef31f5ffbfec (diff)
vmscan: cleanup the scan batching code
The vmscan batching logic is twisting. Move it into a standalone function nr_scan_try_batch() and document it. No behavior change. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Acked-by: Rik van Riel <riel@redhat.com> Cc: Nick Piggin <npiggin@suse.de> Cc: Christoph Lameter <cl@linux-foundation.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 131655cdb6b2..e5b8f628d166 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3657,7 +3657,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
3657 zone_pcp_init(zone); 3657 zone_pcp_init(zone);
3658 for_each_lru(l) { 3658 for_each_lru(l) {
3659 INIT_LIST_HEAD(&zone->lru[l].list); 3659 INIT_LIST_HEAD(&zone->lru[l].list);
3660 zone->lru[l].nr_scan = 0; 3660 zone->lru[l].nr_saved_scan = 0;
3661 } 3661 }
3662 zone->reclaim_stat.recent_rotated[0] = 0; 3662 zone->reclaim_stat.recent_rotated[0] = 0;
3663 zone->reclaim_stat.recent_rotated[1] = 0; 3663 zone->reclaim_stat.recent_rotated[1] = 0;