• Home
  • Raw
  • Download

Lines Matching refs:root

57 	struct cgroup_root *root;  in cgroup_attach_task_all()  local
63 for_each_root(root) { in cgroup_attach_task_all()
66 if (root == &cgrp_dfl_root) in cgroup_attach_task_all()
70 from_cgrp = task_cgroup_from_root(from, root); in cgroup_attach_task_all()
554 BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); in cgroup_release_agent_write()
569 strlcpy(cgrp->root->release_agent_path, strstrip(buf), in cgroup_release_agent_write()
570 sizeof(cgrp->root->release_agent_path)); in cgroup_release_agent_write()
581 seq_puts(seq, cgrp->root->release_agent_path); in cgroup_release_agent_show()
686 ss->legacy_name, ss->root->hierarchy_id, in proc_cgroupstats_show()
687 atomic_read(&ss->root->nr_cgrps), in proc_cgroupstats_show()
797 if (!cgrp->root->release_agent_path[0]) in cgroup1_release_agent()
807 strlcpy(agentbuf, cgrp->root->release_agent_path, PATH_MAX); in cgroup1_release_agent()
872 struct cgroup_root *root = cgroup_root_from_kf(kf_root); in cgroup1_show_options() local
877 if (root->subsys_mask & (1 << ssid)) in cgroup1_show_options()
879 if (root->flags & CGRP_ROOT_NOPREFIX) in cgroup1_show_options()
881 if (root->flags & CGRP_ROOT_XATTR) in cgroup1_show_options()
883 if (root->flags & CGRP_ROOT_CPUSET_V2_MODE) in cgroup1_show_options()
887 if (strlen(root->release_agent_path)) in cgroup1_show_options()
889 root->release_agent_path); in cgroup1_show_options()
892 if (test_bit(CGRP_CPUSET_CLONE_CHILDREN, &root->cgrp.flags)) in cgroup1_show_options()
894 if (strlen(root->name)) in cgroup1_show_options()
895 seq_show_option(seq, "name", root->name); in cgroup1_show_options()
1072 struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); in cgroup1_reconfigure()
1073 struct cgroup_root *root = cgroup_root_from_kf(kf_root); in cgroup1_reconfigure() local
1084 if (ctx->subsys_mask != root->subsys_mask || ctx->release_agent) in cgroup1_reconfigure()
1088 added_mask = ctx->subsys_mask & ~root->subsys_mask; in cgroup1_reconfigure()
1089 removed_mask = root->subsys_mask & ~ctx->subsys_mask; in cgroup1_reconfigure()
1092 if ((ctx->flags ^ root->flags) || in cgroup1_reconfigure()
1093 (ctx->name && strcmp(ctx->name, root->name))) { in cgroup1_reconfigure()
1095 ctx->flags, ctx->name ?: "", root->flags, root->name); in cgroup1_reconfigure()
1101 if (!list_empty(&root->cgrp.self.children)) { in cgroup1_reconfigure()
1106 ret = rebind_subsystems(root, added_mask); in cgroup1_reconfigure()
1114 strcpy(root->release_agent_path, ctx->release_agent); in cgroup1_reconfigure()
1118 trace_cgroup_remount(root); in cgroup1_reconfigure()
1144 struct cgroup_root *root; in cgroup1_root_to_use() local
1162 ss->root == &cgrp_dfl_root) in cgroup1_root_to_use()
1165 if (!percpu_ref_tryget_live(&ss->root->cgrp.self.refcnt)) in cgroup1_root_to_use()
1167 cgroup_put(&ss->root->cgrp); in cgroup1_root_to_use()
1170 for_each_root(root) { in cgroup1_root_to_use()
1173 if (root == &cgrp_dfl_root) in cgroup1_root_to_use()
1182 if (strcmp(ctx->name, root->name)) in cgroup1_root_to_use()
1192 (ctx->subsys_mask != root->subsys_mask)) { in cgroup1_root_to_use()
1198 if (root->flags ^ ctx->flags) in cgroup1_root_to_use()
1201 ctx->root = root; in cgroup1_root_to_use()
1217 root = kzalloc(sizeof(*root), GFP_KERNEL); in cgroup1_root_to_use()
1218 if (!root) in cgroup1_root_to_use()
1221 ctx->root = root; in cgroup1_root_to_use()
1224 ret = cgroup_setup_root(root, ctx->subsys_mask); in cgroup1_root_to_use()
1226 cgroup_free_root(root); in cgroup1_root_to_use()
1242 if (!ret && !percpu_ref_tryget_live(&ctx->root->cgrp.self.refcnt)) in cgroup1_get_tree()
1250 if (!ret && percpu_ref_is_dying(&ctx->root->cgrp.self.refcnt)) { in cgroup1_get_tree()