[PATCH -mm v3 7/7] slub: rework sysfs layout for memcg caches

2014-02-19 Thread Vladimir Davydov
Currently, we try to arrange sysfs entries for memcg caches in the same manner as for global caches. Apart from turning /sys/kernel/slab into a mess when there are a lot of kmem-active memcgs created, it actually does not work properly - we won't create more than one link to a memcg cache in case

[PATCH -mm v3 7/7] slub: rework sysfs layout for memcg caches

2014-02-19 Thread Vladimir Davydov
Currently, we try to arrange sysfs entries for memcg caches in the same manner as for global caches. Apart from turning /sys/kernel/slab into a mess when there are a lot of kmem-active memcgs created, it actually does not work properly - we won't create more than one link to a memcg cache in case