slub: fix memcg_propagate_slab_attrs
authorVladimir Davydov <vdavydov@parallels.com>
Tue, 6 May 2014 19:49:59 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 May 2014 20:04:58 +0000 (13:04 -0700)
commit93030d83b9e1079836d82b46ab3ec671b1fdb623
tree3d67394036bae1fe07c4990fad5fec1668c41213
parent35738392b6c050625e41cc6b941f9828794149b3
slub: fix memcg_propagate_slab_attrs

After creating a cache for a memcg we should initialize its sysfs attrs
with the values from its parent.  That's what memcg_propagate_slab_attrs
is for.  Currently it's broken - we clearly muddled root-vs-memcg caches
there.  Let's fix it up.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c