]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: get rid of memcg_create_cache_name
authorVladimir Davydov <vdavydov@parallels.com>
Wed, 14 May 2014 00:02:07 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:07 +0000 (10:02 +1000)
commit574dedb9da609223be578d044a0fe13eac6d5a24
treebc170f4870960005b9f0fa1c5e0eaba3446ebb2f
parent75702d4abfaf6ef044db7b00e90dcb1c247b3e50
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