]> 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, 9 Sep 2011 06:16:11 +0000 (16:16 +1000)
commit6b37728700ba30ca134c6d456dfcb8a6d68155f3
treedcff2db552e32715221b71527398ed723deee2e7
parent59ade1b4bc3741a2846924326691c1fca1ec643e
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