memcg: zap memcg_name argument of memcg_create_kmem_cache
authorVladimir Davydov <vdavydov@parallels.com>
Tue, 10 Feb 2015 22:11:44 +0000 (14:11 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:34 +0000 (14:30 -0800)
commit3e0350a36414a73c5c2d1e354f8c0ab4ace1296d
tree70d8c13dd7f32f684f0f3653fe5616c43b8726b5
parentdbf22eb6d8675fc173154d9f1bd1bd0fda53a001
memcg: zap memcg_name argument of memcg_create_kmem_cache

Instead of passing the name of the memory cgroup which the cache is
created for in the memcg_name_argument, let's obtain it immediately in
memcg_create_kmem_cache.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slab.h
mm/memcontrol.c
mm/slab_common.c