diff options
author | Johannes Weiner <jweiner@redhat.com> | 2011-09-14 16:21:52 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-01 12:26:55 -0700 |
commit | 33c17eafdeefb08fbb6ded946abcf024f76c9615 (patch) | |
tree | d79cdb7090a67ca6a5b02b3df5e1b56daf8d0f0f /drivers/char/raw.c | |
parent | 71a07f4cf29615d30369760c022972d4875758b3 (diff) | |
download | kernel_samsung_crespo-33c17eafdeefb08fbb6ded946abcf024f76c9615.zip kernel_samsung_crespo-33c17eafdeefb08fbb6ded946abcf024f76c9615.tar.gz kernel_samsung_crespo-33c17eafdeefb08fbb6ded946abcf024f76c9615.tar.bz2 |
mm: vmscan: fix force-scanning small targets without swap
commit a4d3e9e76337059406fcf3ead288c0df22a790e9 upstream.
Stable note: Not tracked in Bugzilla. This patch augments an earlier commit
that avoids scanning priority being artificially raised. The older
fix was particularly important for small memcgs to avoid calling
wait_iff_congested() unnecessarily.
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>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/raw.c')
0 files changed, 0 insertions, 0 deletions