Lines Matching defs:memcg_css
506 css_put(wb->memcg_css);
536 WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id));
551 struct cgroup_subsys_state *memcg_css, gfp_t gfp)
560 memcg = mem_cgroup_from_css(memcg_css);
561 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys);
567 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
595 wb->memcg_css = memcg_css;
613 ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb);
619 css_get(memcg_css);
648 * @memcg_css: cgroup_subsys_state of the target memcg (must have positive ref)
650 * Try to get the wb for @memcg_css on @bdi. The returned wb has its
653 * This function uses css_get() on @memcg_css and thus expects its refcnt
655 * @memcg_css isn't enough. try_get it before calling this function.
669 struct cgroup_subsys_state *memcg_css)
673 if (!memcg_css->parent)
677 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
682 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys);
695 * @memcg_css: cgroup_subsys_state of the target memcg (must have positive ref)
698 * Try to get the wb for @memcg_css on @bdi. If it doesn't exist, try to
702 struct cgroup_subsys_state *memcg_css,
710 wb = wb_get_lookup(bdi, memcg_css);
711 } while (!wb && !cgwb_create(bdi, memcg_css, gfp));
726 bdi->wb.memcg_css = &root_mem_cgroup->css;