summaryrefslogtreecommitdiffstats
path: root/mm/frame_vector.c
diff options
context:
space:
mode:
authorTejun Heo2015-11-06 03:46:20 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commit7f822c24c2b32a9feafb33e3b9a9e23ef4278c2c (patch)
treea43919d36f826b896d8c00a74d64a9dbeb915884 /mm/frame_vector.c
parentmemcg: ratify and consolidate over-charge handling (diff)
downloadkernel-qcow2-linux-7f822c24c2b32a9feafb33e3b9a9e23ef4278c2c.tar.gz
kernel-qcow2-linux-7f822c24c2b32a9feafb33e3b9a9e23ef4278c2c.tar.xz
kernel-qcow2-linux-7f822c24c2b32a9feafb33e3b9a9e23ef4278c2c.zip
memcg: drop unnecessary cold-path tests from __memcg_kmem_bypass()
__memcg_kmem_bypass() decides whether a kmem allocation should be bypassed to the root memcg. Some conditions that it tests are valid criteria regarding who should be held accountable; however, there are a couple unnecessary tests for cold paths - __GFP_FAIL and fatal_signal_pending(). The previous patch updated try_charge() to handle both __GFP_FAIL and dying tasks correctly and the only thing these two tests are doing is making accounting less accurate and sprinkling tests for cold path conditions in the hot paths. There's nothing meaningful gained by these extra tests. This patch removes the two unnecessary tests from __memcg_kmem_bypass(). Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Vladimir Davydov <vdavydov@parallels.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/frame_vector.c')
0 files changed, 0 insertions, 0 deletions