summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorVladimir Davydov <vdavydov@parallels.com>2014-01-24 00:53:03 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 01:36:51 +0100
commit842e2873697e023d140a8905a41fcf39d4e546f1 (patch)
tree5ba705288c9cc5cee0e22a3c55166e8982c994db /mm/slab_common.c
parentmemcg, slab: fix races in per-memcg cache creation/destruction (diff)
downloadlinux-842e2873697e023d140a8905a41fcf39d4e546f1.tar.xz
linux-842e2873697e023d140a8905a41fcf39d4e546f1.zip
memcg: get rid of kmem_cache_dup()
kmem_cache_dup() is only called from memcg_create_kmem_cache(). The latter, in fact, does nothing besides this, so let's fold kmem_cache_dup() into memcg_create_kmem_cache(). This patch also makes the memcg_cache_mutex private to memcg_create_kmem_cache(), because it is not used anywhere else. Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Glauber Costa <glommer@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Balbir Singh <bsingharora@gmail.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions