diff options
author | Johannes Weiner <jweiner@redhat.com> | 2011-10-31 17:07:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 17:30:46 -0700 |
commit | f11c0ca501af89fc07b0d9f17531ba3b68a4ef39 (patch) | |
tree | c66a24b4ca2778b940c01a2af78eca6abc0b3421 /fs/proc/task_mmu.c | |
parent | 4f31888c104687078f8d88c2f11eca1080c88464 (diff) | |
download | linux-f11c0ca501af89fc07b0d9f17531ba3b68a4ef39.tar.gz linux-f11c0ca501af89fc07b0d9f17531ba3b68a4ef39.tar.bz2 linux-f11c0ca501af89fc07b0d9f17531ba3b68a4ef39.zip |
mm: vmscan: drop nr_force_scan[] from get_scan_count
The nr_force_scan[] tuple holds the effective scan numbers for anon and
file pages in case the situation called for a forced scan and the
regularly calculated scan numbers turned out zero.
However, the effective scan number can always be assumed to be
SWAP_CLUSTER_MAX right before the division into anon and file. The
numerators and denominator are properly set up for all cases, be it force
scan for just file, just anon, or both, to do the right thing.
Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Ying Han <yinghan@google.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/task_mmu.c')
0 files changed, 0 insertions, 0 deletions