Lines Matching refs:memcg_css
406 css_put(wb->memcg_css); in cgwb_release_workfn()
435 WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id)); in cgwb_kill()
450 struct cgroup_subsys_state *memcg_css, gfp_t gfp) in cgwb_create() argument
460 memcg = mem_cgroup_from_css(memcg_css); in cgwb_create()
461 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys); in cgwb_create()
468 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in cgwb_create()
496 wb->memcg_css = memcg_css; in cgwb_create()
513 ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb); in cgwb_create()
519 css_get(memcg_css); in cgwb_create()
568 struct cgroup_subsys_state *memcg_css) in wb_get_lookup() argument
572 if (!memcg_css->parent) in wb_get_lookup()
576 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in wb_get_lookup()
581 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys); in wb_get_lookup()
601 struct cgroup_subsys_state *memcg_css, in wb_get_create() argument
608 if (!memcg_css->parent) in wb_get_create()
612 wb = wb_get_lookup(bdi, memcg_css); in wb_get_create()
613 } while (!wb && !cgwb_create(bdi, memcg_css, gfp)); in wb_get_create()
628 bdi->wb.memcg_css = &root_mem_cgroup->css; in cgwb_bdi_init()