Lines Matching refs:root_cgrp
1329 struct cgroup *root_cgrp = kernfs_root_to_node(kf_root)->priv; in cgroup_root_from_kf() local
1331 return root_cgrp->root; in cgroup_root_from_kf()
2158 struct cgroup *root_cgrp = &root->cgrp; in cgroup_setup_root() local
2165 ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release, in cgroup_setup_root()
2193 root_cgrp); in cgroup_setup_root()
2198 root_cgrp->kn = kernfs_root_to_node(root->kf_root); in cgroup_setup_root()
2199 WARN_ON_ONCE(cgroup_ino(root_cgrp) != 1); in cgroup_setup_root()
2200 root_cgrp->ancestors[0] = root_cgrp; in cgroup_setup_root()
2202 ret = css_populate_dir(&root_cgrp->self); in cgroup_setup_root()
2206 ret = css_rstat_init(&root_cgrp->self); in cgroup_setup_root()
2215 CGROUP_LIFETIME_ONLINE, root_cgrp); in cgroup_setup_root()
2234 link_css_set(&tmp_links, cset, root_cgrp); in cgroup_setup_root()
2236 cgroup_update_populated(root_cgrp, true); in cgroup_setup_root()
2240 BUG_ON(!list_empty(&root_cgrp->self.children)); in cgroup_setup_root()
2247 css_rstat_exit(&root_cgrp->self); in cgroup_setup_root()
2254 percpu_ref_exit(&root_cgrp->self.refcnt); in cgroup_setup_root()
6525 struct cgroup *cgrp, *root_cgrp; in cgroup_get_from_id() local
6531 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_id()
6532 if (!cgroup_is_descendant(cgrp, root_cgrp)) { in cgroup_get_from_id()
7209 struct cgroup *root_cgrp; in cgroup_get_from_path() local
7211 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_path()
7212 kn = kernfs_walk_and_get(root_cgrp->kn, path); in cgroup_get_from_path()