slub: adjust memcg caches when creating cache alias
authorVladimir Davydov <vdavydov@parallels.com>
Mon, 7 Apr 2014 22:39:29 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:13 +0000 (16:36 -0700)
commit84d0ddd6b0e3187d85e609c2d10c36089cf0be04
tree9b5fc606816eda4bf2ca5c980a876d149d3e4692
parentb8529907ba35d625fa4b85d3e4dc8021be97c1f3
slub: adjust memcg caches when creating cache alias

Otherwise, kzalloc() called from a memcg won't clear the whole object.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Glauber Costa <glommer@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c