On Sun, 7 Dec 2014, Vladimir Davydov wrote: > diff --git a/mm/slub.c b/mm/slub.c > index 95d214255663..7ddf01e2a465 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -2450,6 +2450,7 @@ redo: > > slab_post_alloc_hook(s, gfpflags, object); > > + memcg_kmem_put_cache(s); > return object; > } The function should be added to slab_post_alloc(). Also move the memcg_kmem_get_cache() into slab_pre_alloc_hook(). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>