]> 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>
Thu, 1 Sep 2011 03:28:47 +0000 (13:28 +1000)
commit68305869e77a3fc039cb836b71f5d77059ff91a0
tree4508b5ce256a6f4d898fbc54072462a14e237690
parenta5eb61119a52d25716880f4cfe1e73791c85da4f
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