]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: get rid of memcg_create_cache_name
authorVladimir Davydov <vdavydov@parallels.com>
Thu, 22 May 2014 00:43:11 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:11 +0000 (10:43 +1000)
commit84188a40b08b13b8526364fc118254b1e652b3a4
tree52f2d74509635434e773e73a064a04a3f6e9a44e
parentb7bc2c4510443cb839f62b63ccf2c958296cb488
memcg: get rid of memcg_create_cache_name

Instead of calling back to memcontrol.c from kmem_cache_create_memcg in
order to just create the name of a per memcg cache, let's allocate it in
place.  We only need to pass the memcg name to kmem_cache_create_memcg for
that - everything else can be done in slab_common.c.

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