Lines Matching refs:root_cgrp
1289 struct cgroup *root_cgrp = kernfs_root_to_node(kf_root)->priv; in cgroup_root_from_kf() local
1291 return root_cgrp->root; in cgroup_root_from_kf()
2101 struct cgroup *root_cgrp = &root->cgrp; in cgroup_setup_root() local
2108 ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release, in cgroup_setup_root()
2136 root_cgrp); in cgroup_setup_root()
2141 root_cgrp->kn = kernfs_root_to_node(root->kf_root); in cgroup_setup_root()
2142 WARN_ON_ONCE(cgroup_ino(root_cgrp) != 1); in cgroup_setup_root()
2143 root_cgrp->ancestors[0] = root_cgrp; in cgroup_setup_root()
2145 ret = css_populate_dir(&root_cgrp->self); in cgroup_setup_root()
2149 ret = cgroup_rstat_init(root_cgrp); in cgroup_setup_root()
2158 ret = cgroup_bpf_inherit(root_cgrp); in cgroup_setup_root()
2178 link_css_set(&tmp_links, cset, root_cgrp); in cgroup_setup_root()
2180 cgroup_update_populated(root_cgrp, true); in cgroup_setup_root()
2184 BUG_ON(!list_empty(&root_cgrp->self.children)); in cgroup_setup_root()
2191 cgroup_rstat_exit(root_cgrp); in cgroup_setup_root()
2198 percpu_ref_exit(&root_cgrp->self.refcnt); in cgroup_setup_root()
6339 struct cgroup *cgrp, *root_cgrp; in cgroup_get_from_id() local
6362 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_id()
6363 if (!cgroup_is_descendant(cgrp, root_cgrp)) { in cgroup_get_from_id()
6983 struct cgroup *root_cgrp; in cgroup_get_from_path() local
6985 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_path()
6986 kn = kernfs_walk_and_get(root_cgrp->kn, path); in cgroup_get_from_path()