summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorJohannes Weiner2011-09-15 01:21:52 +0200
committerLinus Torvalds2011-09-15 03:09:37 +0200
commita4d3e9e76337059406fcf3ead288c0df22a790e9 (patch)
treea0213478caaa3845bf62a4cbe6b65979be5e34b4 /mm/memcontrol.c
parentdrivers/rtc/rtc-imxdi.c needs linux/sched.h (diff)
downloadkernel-qcow2-linux-a4d3e9e76337059406fcf3ead288c0df22a790e9.tar.gz
kernel-qcow2-linux-a4d3e9e76337059406fcf3ead288c0df22a790e9.tar.xz
kernel-qcow2-linux-a4d3e9e76337059406fcf3ead288c0df22a790e9.zip
mm: vmscan: fix force-scanning small targets without swap
Without swap, anonymous pages are not scanned. As such, they should not count when considering force-scanning a small target if there is no swap. Otherwise, targets are not force-scanned even when their effective scan number is zero and the other conditions--kswapd/memcg--apply. This fixes 246e87a93934 ("memcg: fix get_scan_count() for small targets"). [akpm@linux-foundation.org: fix comment] Signed-off-by: Johannes Weiner <jweiner@redhat.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 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions