projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef0a0f
)
slub: remove kmemcg id from create_unique_id
author
Vladimir Davydov
<
[email protected]
>
Wed, 6 Aug 2014 23:07:33 +0000
(16:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Aug 2014 01:01:21 +0000
(18:01 -0700)
This function is never called for memcg caches, because they are
unmergeable, so remove the dead code.
Signed-off-by: Vladimir Davydov <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Reviewed-by: Pekka Enberg <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: Joonsoo Kim <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 9b861b90cde1ff5f2c2cfc6d3b282158a5f2811d..3e8afcc07a760c552135cfb3c79ac924ee9e5494 100644
(file)
--- 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;
}