Lines Matching refs:root_cgrp
1306 struct cgroup *root_cgrp = kernfs_root_to_node(kf_root)->priv; in cgroup_root_from_kf() local
1308 return root_cgrp->root; in cgroup_root_from_kf()
2043 struct cgroup *root_cgrp = &root->cgrp; in cgroup_setup_root() local
2050 ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release, in cgroup_setup_root()
2077 root_cgrp); in cgroup_setup_root()
2082 root_cgrp->kn = kernfs_root_to_node(root->kf_root); in cgroup_setup_root()
2083 WARN_ON_ONCE(cgroup_ino(root_cgrp) != 1); in cgroup_setup_root()
2084 root_cgrp->ancestors[0] = root_cgrp; in cgroup_setup_root()
2086 ret = css_populate_dir(&root_cgrp->self); in cgroup_setup_root()
2090 ret = cgroup_rstat_init(root_cgrp); in cgroup_setup_root()
2098 ret = cgroup_bpf_inherit(root_cgrp); in cgroup_setup_root()
2117 link_css_set(&tmp_links, cset, root_cgrp); in cgroup_setup_root()
2119 cgroup_update_populated(root_cgrp, true); in cgroup_setup_root()
2123 BUG_ON(!list_empty(&root_cgrp->self.children)); in cgroup_setup_root()
2130 cgroup_rstat_exit(root_cgrp); in cgroup_setup_root()
2137 percpu_ref_exit(&root_cgrp->self.refcnt); in cgroup_setup_root()
6189 struct cgroup *cgrp, *root_cgrp; in cgroup_get_from_id() local
6212 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_id()
6213 if (!cgroup_is_descendant(cgrp, root_cgrp)) { in cgroup_get_from_id()
6815 struct cgroup *root_cgrp; in cgroup_get_from_path() local
6817 root_cgrp = current_cgns_cgroup_dfl(); in cgroup_get_from_path()
6818 kn = kernfs_walk_and_get(root_cgrp->kn, path); in cgroup_get_from_path()