summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorTejun Heo2015-11-06 03:46:14 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commitcbfb479809c1b8d871cb9a31832e065e900a24c1 (patch)
tree5c349d5b3c1e08ad23ef24365656e16cb553fa3b /mm/memcontrol.c
parentmemcg: punt high overage reclaim to return-to-userland path (diff)
downloadkernel-qcow2-linux-cbfb479809c1b8d871cb9a31832e065e900a24c1.tar.gz
kernel-qcow2-linux-cbfb479809c1b8d871cb9a31832e065e900a24c1.tar.xz
kernel-qcow2-linux-cbfb479809c1b8d871cb9a31832e065e900a24c1.zip
memcg: collect kmem bypass conditions into __memcg_kmem_bypass()
memcg_kmem_newpage_charge() and memcg_kmem_get_cache() are testing the same series of conditions to decide whether to bypass kmem accounting. Collect the tests into __memcg_kmem_bypass(). This is pure refactoring. 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/memcontrol.c')
0 files changed, 0 insertions, 0 deletions