Lines Matching refs:memcg
184 mem_cgroup_put(s->memcg_params.memcg); in destroy_memcg_params()
185 WRITE_ONCE(s->memcg_params.memcg, NULL); in destroy_memcg_params()
238 void memcg_link_cache(struct kmem_cache *s, struct mem_cgroup *memcg) in memcg_link_cache() argument
243 css_get(&memcg->css); in memcg_link_cache()
244 s->memcg_params.memcg = memcg; in memcg_link_cache()
248 &s->memcg_params.memcg->kmem_caches); in memcg_link_cache()
383 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache() argument
413 memcg_link_cache(s, memcg); in create_cache()
640 void memcg_create_kmem_cache(struct mem_cgroup *memcg, in memcg_create_kmem_cache() argument
644 struct cgroup_subsys_state *css = &memcg->css; in memcg_create_kmem_cache()
659 if (memcg->kmem_state != KMEM_ONLINE) in memcg_create_kmem_cache()
662 idx = memcg_cache_id(memcg); in memcg_create_kmem_cache()
684 root_cache->ctor, memcg, root_cache); in memcg_create_kmem_cache()
792 void memcg_deactivate_kmem_caches(struct mem_cgroup *memcg, in memcg_deactivate_kmem_caches() argument
800 idx = memcg_cache_id(memcg); in memcg_deactivate_kmem_caches()
817 list_for_each_entry(s, &memcg->kmem_caches, in memcg_deactivate_kmem_caches()
819 WRITE_ONCE(s->memcg_params.memcg, parent); in memcg_deactivate_kmem_caches()
820 css_put(&memcg->css); in memcg_deactivate_kmem_caches()
824 list_splice_init(&memcg->kmem_caches, in memcg_deactivate_kmem_caches()
1520 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_slab_start() local
1523 return seq_list_start(&memcg->kmem_caches, *pos); in memcg_slab_start()
1528 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_slab_next() local
1530 return seq_list_next(p, &memcg->kmem_caches, pos); in memcg_slab_next()
1542 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_slab_show() local
1544 if (p == memcg->kmem_caches.next) in memcg_slab_show()
1621 css = &c->memcg_params.memcg->css; in memcg_slabinfo_show()