Searched refs:root_cache (Results 1 – 4 of 4) sorted by relevance
/mm/ |
D | slab_common.c | 110 struct kmem_cache *s, struct kmem_cache *root_cache) in memcg_alloc_cache_params() argument 129 s->memcg_params->root_cache = root_cache; in memcg_alloc_cache_params() 194 struct kmem_cache *s, struct kmem_cache *root_cache) in memcg_alloc_cache_params() argument 301 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in do_kmem_cache_create() argument 317 err = memcg_alloc_cache_params(memcg, s, root_cache); in do_kmem_cache_create() 440 struct kmem_cache *root_cache, in memcg_create_kmem_cache() argument 451 cache_name = kasprintf(GFP_KERNEL, "%s(%d:%s)", root_cache->name, in memcg_create_kmem_cache() 456 s = do_kmem_cache_create(cache_name, root_cache->object_size, in memcg_create_kmem_cache() 457 root_cache->size, root_cache->align, in memcg_create_kmem_cache() 458 root_cache->flags, root_cache->ctor, in memcg_create_kmem_cache() [all …]
|
D | slab.h | 177 (s->memcg_params && (p == s->memcg_params->root_cache)); in slab_equal_or_root() 188 return s->memcg_params->root_cache->name; in cache_name() 228 return s->memcg_params->root_cache; in memcg_root_cache()
|
D | memcontrol.c | 2783 cachep = p->root_cache; in memcg_params_to_cache() 2927 struct kmem_cache *root_cache) in memcg_register_cache() argument 2943 if (cache_from_memcg_idx(root_cache, id)) in memcg_register_cache() 2947 cachep = memcg_create_kmem_cache(memcg, root_cache, memcg_name_buf); in memcg_register_cache() 2966 BUG_ON(root_cache->memcg_params->memcg_caches[id]); in memcg_register_cache() 2967 root_cache->memcg_params->memcg_caches[id] = cachep; in memcg_register_cache() 2972 struct kmem_cache *root_cache; in memcg_unregister_cache() local 2980 root_cache = cachep->memcg_params->root_cache; in memcg_unregister_cache() 2984 BUG_ON(root_cache->memcg_params->memcg_caches[id] != cachep); in memcg_unregister_cache() 2985 root_cache->memcg_params->memcg_caches[id] = NULL; in memcg_unregister_cache()
|
D | slub.c | 5026 struct kmem_cache *root_cache; in memcg_propagate_slab_attrs() local 5031 root_cache = s->memcg_params->root_cache; in memcg_propagate_slab_attrs() 5037 if (!root_cache->max_attr_size) in memcg_propagate_slab_attrs() 5060 else if (root_cache->max_attr_size < ARRAY_SIZE(mbuf)) in memcg_propagate_slab_attrs() 5069 len = attr->show(root_cache, buf); in memcg_propagate_slab_attrs() 5113 return s->memcg_params->root_cache->memcg_kset; in cache_kset()
|