• Home
  • Raw
  • Download

Lines Matching refs:root

61 	struct cgroup_root *root;  in cgroup_attach_task_all()  local
66 for_each_root(root) { in cgroup_attach_task_all()
69 if (root == &cgrp_dfl_root) in cgroup_attach_task_all()
73 from_cgrp = task_cgroup_from_root(from, root); in cgroup_attach_task_all()
550 BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); in cgroup_release_agent_write()
556 strlcpy(cgrp->root->release_agent_path, strstrip(buf), in cgroup_release_agent_write()
557 sizeof(cgrp->root->release_agent_path)); in cgroup_release_agent_write()
568 seq_puts(seq, cgrp->root->release_agent_path); in cgroup_release_agent_show()
673 ss->legacy_name, ss->root->hierarchy_id, in proc_cgroupstats_show()
674 atomic_read(&ss->root->nr_cgrps), in proc_cgroupstats_show()
786 agentbuf = kstrdup(cgrp->root->release_agent_path, GFP_KERNEL); in cgroup1_release_agent()
852 struct cgroup_root *root = cgroup_root_from_kf(kf_root); in cgroup1_show_options() local
857 if (root->subsys_mask & (1 << ssid)) in cgroup1_show_options()
859 if (root->flags & CGRP_ROOT_NOPREFIX) in cgroup1_show_options()
861 if (root->flags & CGRP_ROOT_XATTR) in cgroup1_show_options()
863 if (root->flags & CGRP_ROOT_CPUSET_V2_MODE) in cgroup1_show_options()
867 if (strlen(root->release_agent_path)) in cgroup1_show_options()
869 root->release_agent_path); in cgroup1_show_options()
872 if (test_bit(CGRP_CPUSET_CLONE_CHILDREN, &root->cgrp.flags)) in cgroup1_show_options()
874 if (strlen(root->name)) in cgroup1_show_options()
875 seq_show_option(seq, "name", root->name); in cgroup1_show_options()
1044 struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); in cgroup1_reconfigure()
1045 struct cgroup_root *root = cgroup_root_from_kf(kf_root); in cgroup1_reconfigure() local
1056 if (ctx->subsys_mask != root->subsys_mask || ctx->release_agent) in cgroup1_reconfigure()
1060 added_mask = ctx->subsys_mask & ~root->subsys_mask; in cgroup1_reconfigure()
1061 removed_mask = root->subsys_mask & ~ctx->subsys_mask; in cgroup1_reconfigure()
1064 if ((ctx->flags ^ root->flags) || in cgroup1_reconfigure()
1065 (ctx->name && strcmp(ctx->name, root->name))) { in cgroup1_reconfigure()
1067 ctx->flags, ctx->name ?: "", root->flags, root->name); in cgroup1_reconfigure()
1073 if (!list_empty(&root->cgrp.self.children)) { in cgroup1_reconfigure()
1078 ret = rebind_subsystems(root, added_mask); in cgroup1_reconfigure()
1086 strcpy(root->release_agent_path, ctx->release_agent); in cgroup1_reconfigure()
1090 trace_cgroup_remount(root); in cgroup1_reconfigure()
1116 struct cgroup_root *root; in cgroup1_root_to_use() local
1134 ss->root == &cgrp_dfl_root) in cgroup1_root_to_use()
1137 if (!percpu_ref_tryget_live(&ss->root->cgrp.self.refcnt)) in cgroup1_root_to_use()
1139 cgroup_put(&ss->root->cgrp); in cgroup1_root_to_use()
1142 for_each_root(root) { in cgroup1_root_to_use()
1145 if (root == &cgrp_dfl_root) in cgroup1_root_to_use()
1154 if (strcmp(ctx->name, root->name)) in cgroup1_root_to_use()
1164 (ctx->subsys_mask != root->subsys_mask)) { in cgroup1_root_to_use()
1170 if (root->flags ^ ctx->flags) in cgroup1_root_to_use()
1173 ctx->root = root; in cgroup1_root_to_use()
1189 root = kzalloc(sizeof(*root), GFP_KERNEL); in cgroup1_root_to_use()
1190 if (!root) in cgroup1_root_to_use()
1193 ctx->root = root; in cgroup1_root_to_use()
1196 ret = cgroup_setup_root(root, ctx->subsys_mask); in cgroup1_root_to_use()
1198 cgroup_free_root(root); in cgroup1_root_to_use()
1214 if (!ret && !percpu_ref_tryget_live(&ctx->root->cgrp.self.refcnt)) in cgroup1_get_tree()
1222 if (!ret && percpu_ref_is_dying(&ctx->root->cgrp.self.refcnt)) { in cgroup1_get_tree()
1223 struct super_block *sb = fc->root->d_sb; in cgroup1_get_tree()
1224 dput(fc->root); in cgroup1_get_tree()