From: Vladimir Davydov Date: Wed, 6 Aug 2014 23:07:33 +0000 (-0700) Subject: slub: remove kmemcg id from create_unique_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aee52cae00ba0d426a827b761920a476a08eca9e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git slub: remove kmemcg id from create_unique_id This function is never called for memcg caches, because they are unmergeable, so remove the dead code. Signed-off-by: Vladimir Davydov Cc: Michal Hocko Cc: Johannes Weiner Cc: Christoph Lameter Reviewed-by: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 9b861b90cde1..3e8afcc07a76 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5128,12 +5128,6 @@ static char *create_unique_id(struct kmem_cache *s) *p++ = '-'; p += sprintf(p, "%07d", s->size); -#ifdef CONFIG_MEMCG_KMEM - if (!is_root_cache(s)) - p += sprintf(p, "-%08d", - memcg_cache_id(s->memcg_params->memcg)); -#endif - BUG_ON(p > name + ID_STR_LENGTH - 1); return name; }