summaryrefslogtreecommitdiffstats
path: root/include/linux/slab.h
diff options
context:
space:
mode:
authorVladimir Davydov2015-02-10 23:11:44 +0100
committerLinus Torvalds2015-02-10 23:30:34 +0100
commit3e0350a36414a73c5c2d1e354f8c0ab4ace1296d (patch)
tree70d8c13dd7f32f684f0f3653fe5616c43b8726b5 /include/linux/slab.h
parentmemcg: zap __memcg_{charge,uncharge}_slab (diff)
downloadkernel-qcow2-linux-3e0350a36414a73c5c2d1e354f8c0ab4ace1296d.tar.gz
kernel-qcow2-linux-3e0350a36414a73c5c2d1e354f8c0ab4ace1296d.tar.xz
kernel-qcow2-linux-3e0350a36414a73c5c2d1e354f8c0ab4ace1296d.zip
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>
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r--include/linux/slab.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h
index 9a139b637069..eca9ed303a1b 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -117,8 +117,7 @@ struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
void (*)(void *));
#ifdef CONFIG_MEMCG_KMEM
struct kmem_cache *memcg_create_kmem_cache(struct mem_cgroup *,
- struct kmem_cache *,
- const char *);
+ struct kmem_cache *);
#endif
void kmem_cache_destroy(struct kmem_cache *);
int kmem_cache_shrink(struct kmem_cache *);