]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/slab.c
mm, slab: memcg_link the SLAB's kmem_cache
[mirror_ubuntu-bionic-kernel.git] / mm / slab.c
index c511938a970016680f80a9029886710ccad0b2f0..e3a236cd1574420f70c6936c1770bb71b251f04f 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1283,6 +1283,7 @@ void __init kmem_cache_init(void)
                                  nr_node_ids * sizeof(struct kmem_cache_node *),
                                  SLAB_HWCACHE_ALIGN);
        list_add(&kmem_cache->list, &slab_caches);
+       memcg_link_cache(kmem_cache);
        slab_state = PARTIAL;
 
        /*