diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-06-16 18:32:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 22:47:39 -0400 |
commit | 6e08a369ee10b361ac1cdcdf4fabd420fd08beb3 (patch) | |
tree | 9dbf870cad025b64781d9051b6680a8a23927e5a /mm/vmstat.c | |
parent | 56e49d218890f49b0057710a4b6fef31f5ffbfec (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/vmstat.c')
-rw-r--r-- | mm/vmstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 415110772c73..84c055556911 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -718,10 +718,10 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, | |||
718 | low_wmark_pages(zone), | 718 | low_wmark_pages(zone), |
719 | high_wmark_pages(zone), | 719 | high_wmark_pages(zone), |
720 | zone->pages_scanned, | 720 | zone->pages_scanned, |
721 | zone->lru[LRU_ACTIVE_ANON].nr_scan, | 721 | zone->lru[LRU_ACTIVE_ANON].nr_saved_scan, |
722 | zone->lru[LRU_INACTIVE_ANON].nr_scan, | 722 | zone->lru[LRU_INACTIVE_ANON].nr_saved_scan, |
723 | zone->lru[LRU_ACTIVE_FILE].nr_scan, | 723 | zone->lru[LRU_ACTIVE_FILE].nr_saved_scan, |
724 | zone->lru[LRU_INACTIVE_FILE].nr_scan, | 724 | zone->lru[LRU_INACTIVE_FILE].nr_saved_scan, |
725 | zone->spanned_pages, | 725 | zone->spanned_pages, |
726 | zone->present_pages); | 726 | zone->present_pages); |
727 | 727 | ||