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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/