]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Without swap, anonymous pages are not scanned. As such, they should not
authorJohannes Weiner <jweiner@redhat.com>
Wed, 24 Aug 2011 23:46:52 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 26 Aug 2011 04:05:58 +0000 (14:05 +1000)
commit53cd2b730919c939ea689ea89c8cba51be69eba3
treec6f4dfb67e0f38b194a0812bb7c0ee438def19ea
parent2fe7ecb8ecea808e07034549566594ec7c68eb66
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.

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>
mm/vmscan.c