]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d0de3d02340065d946021538003128aa63f0333
tree3d67394036bae1fe07c4990fad5fec1668c41213
parent32f829e492e3a369ebb2faec6a17ee6433bc8b8d
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