aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 8b8508adf9c2..75d55fdfe3a1 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3577,6 +3577,7 @@ static struct kmem_cache * __init bootstrap(struct kmem_cache *static_cache)
3577 p->slab_cache = s; 3577 p->slab_cache = s;
3578#endif 3578#endif
3579 } 3579 }
3580 slab_init_memcg_params(s);
3580 list_add(&s->list, &slab_caches); 3581 list_add(&s->list, &slab_caches);
3581 return s; 3582 return s;
3582} 3583}
@@ -4964,7 +4965,7 @@ static void memcg_propagate_slab_attrs(struct kmem_cache *s)
4964 if (is_root_cache(s)) 4965 if (is_root_cache(s))
4965 return; 4966 return;
4966 4967
4967 root_cache = s->memcg_params->root_cache; 4968 root_cache = s->memcg_params.root_cache;
4968 4969
4969 /* 4970 /*
4970 * This mean this cache had no attribute written. Therefore, no point 4971 * This mean this cache had no attribute written. Therefore, no point
@@ -5044,7 +5045,7 @@ static inline struct kset *cache_kset(struct kmem_cache *s)
5044{ 5045{
5045#ifdef CONFIG_MEMCG_KMEM 5046#ifdef CONFIG_MEMCG_KMEM
5046 if (!is_root_cache(s)) 5047 if (!is_root_cache(s))
5047 return s->memcg_params->root_cache->memcg_kset; 5048 return s->memcg_params.root_cache->memcg_kset;
5048#endif 5049#endif
5049 return slab_kset; 5050 return slab_kset;
5050} 5051}