aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/linux/mmzone.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index dd8487f0442f..db976b9f8791 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -334,9 +334,9 @@ struct zone {
334 334
335 /* Fields commonly accessed by the page reclaim scanner */ 335 /* Fields commonly accessed by the page reclaim scanner */
336 spinlock_t lru_lock; 336 spinlock_t lru_lock;
337 struct { 337 struct zone_lru {
338 struct list_head list; 338 struct list_head list;
339 unsigned long nr_scan; 339 unsigned long nr_saved_scan; /* accumulated for batching */
340 } lru[NR_LRU_LISTS]; 340 } lru[NR_LRU_LISTS];
341 341
342 struct zone_reclaim_stat reclaim_stat; 342 struct zone_reclaim_stat reclaim_stat;