Lines Matching refs:root_cgrp

1274 	struct cgroup *root_cgrp = kernfs_root_to_node(kf_root)->priv;  in cgroup_root_from_kf()  local
1276 return root_cgrp->root; in cgroup_root_from_kf()
2035 struct cgroup *root_cgrp = &root->cgrp; in cgroup_setup_root() local
2042 ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release, in cgroup_setup_root()
2069 root_cgrp); in cgroup_setup_root()
2074 root_cgrp->kn = kernfs_root_to_node(root->kf_root); in cgroup_setup_root()
2075 WARN_ON_ONCE(cgroup_ino(root_cgrp) != 1); in cgroup_setup_root()
2076 root_cgrp->ancestors[0] = root_cgrp; in cgroup_setup_root()
2078 ret = css_populate_dir(&root_cgrp->self); in cgroup_setup_root()
2082 ret = cgroup_rstat_init(root_cgrp); in cgroup_setup_root()
2090 ret = cgroup_bpf_inherit(root_cgrp); in cgroup_setup_root()
2109 link_css_set(&tmp_links, cset, root_cgrp); in cgroup_setup_root()
2111 cgroup_update_populated(root_cgrp, true); in cgroup_setup_root()
2115 BUG_ON(!list_empty(&root_cgrp->self.children)); in cgroup_setup_root()
2122 cgroup_rstat_exit(root_cgrp); in cgroup_setup_root()
2129 percpu_ref_exit(&root_cgrp->self.refcnt); in cgroup_setup_root()
6206 struct cgroup *cgrp, *root_cgrp; in cgroup_get_from_id() local
6229 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_id()
6230 if (!cgroup_is_descendant(cgrp, root_cgrp)) { in cgroup_get_from_id()
6834 struct cgroup *root_cgrp; in cgroup_get_from_path() local
6836 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_path()
6837 kn = kernfs_walk_and_get(root_cgrp->kn, path); in cgroup_get_from_path()