aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <[email protected]>2011-07-08 15:39:42 -0700
committerLinus Torvalds <[email protected]>2011-07-08 21:14:43 -0700
commit4d0c066d29f030d47d19678f8008933e67dd3b72 (patch)
tree96f46e845b7a937b2e41b735061f696d2cb03293 /lib/cpu-notifier-error-inject.c
parent0b43c3aab0137595335b08b340a3f3e5af9818a6 (diff)
memcg: fix reclaimable lru check in memcg
Now, in mem_cgroup_hierarchical_reclaim(), mem_cgroup_local_usage() is used for checking whether the memcg contains reclaimable pages or not. If no pages in it, the routine skips it. But, mem_cgroup_local_usage() contains Unevictable pages and cannot handle "noswap" condition correctly. This doesn't work on a swapless system. This patch adds test_mem_cgroup_reclaimable() and replaces mem_cgroup_local_usage(). test_mem_cgroup_reclaimable() see LRU counter and returns correct answer to the caller. And this new function has "noswap" argument and can see only FILE LRU if necessary. [[email protected]: coding-style fixes] [[email protected]: fix kerneldoc layout] Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Ying Han <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Daisuke Nishimura <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions