Lines Matching refs:memcg_css
392 css_put(wb->memcg_css); in cgwb_release_workfn()
423 WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id)); in cgwb_kill()
438 struct cgroup_subsys_state *memcg_css, gfp_t gfp) in cgwb_create() argument
447 memcg = mem_cgroup_from_css(memcg_css); in cgwb_create()
448 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys); in cgwb_create()
454 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in cgwb_create()
482 wb->memcg_css = memcg_css; in cgwb_create()
500 ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb); in cgwb_create()
506 css_get(memcg_css); in cgwb_create()
556 struct cgroup_subsys_state *memcg_css) in wb_get_lookup() argument
560 if (!memcg_css->parent) in wb_get_lookup()
564 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in wb_get_lookup()
569 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys); in wb_get_lookup()
589 struct cgroup_subsys_state *memcg_css, in wb_get_create() argument
596 if (!memcg_css->parent) in wb_get_create()
600 wb = wb_get_lookup(bdi, memcg_css); in wb_get_create()
601 } while (!wb && !cgwb_create(bdi, memcg_css, gfp)); in wb_get_create()
616 bdi->wb.memcg_css = &root_mem_cgroup->css; in cgwb_bdi_init()