Lines Matching defs:memcg_css
531 css_put(wb->memcg_css);
561 WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id));
576 struct cgroup_subsys_state *memcg_css, gfp_t gfp)
585 memcg = mem_cgroup_from_css(memcg_css);
586 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys);
592 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
620 wb->memcg_css = memcg_css;
638 ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb);
644 css_get(memcg_css);
673 * @memcg_css: cgroup_subsys_state of the target memcg (must have positive ref)
675 * Try to get the wb for @memcg_css on @bdi. The returned wb has its
678 * This function uses css_get() on @memcg_css and thus expects its refcnt
680 * @memcg_css isn't enough. try_get it before calling this function.
694 struct cgroup_subsys_state *memcg_css)
698 if (!memcg_css->parent)
702 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
707 blkcg_css = cgroup_get_e_css(memcg_css->cgroup, &io_cgrp_subsys);
720 * @memcg_css: cgroup_subsys_state of the target memcg (must have positive ref)
723 * Try to get the wb for @memcg_css on @bdi. If it doesn't exist, try to
727 struct cgroup_subsys_state *memcg_css,
735 wb = wb_get_lookup(bdi, memcg_css);
736 } while (!wb && !cgwb_create(bdi, memcg_css, gfp));
751 bdi->wb.memcg_css = &root_mem_cgroup->css;