aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 79993ac066c5..7e9fa505b7bb 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -250,6 +250,9 @@ enum {
250 * 250 *
251 * - "cgroup.clone_children" is removed. 251 * - "cgroup.clone_children" is removed.
252 * 252 *
253 * - If mount is requested with sane_behavior but without any
254 * subsystem, the default unified hierarchy is mounted.
255 *
253 * - cpuset: tasks will be kept in empty cpusets when hotplug happens 256 * - cpuset: tasks will be kept in empty cpusets when hotplug happens
254 * and take masks of ancestors with non-empty cpus/mems, instead of 257 * and take masks of ancestors with non-empty cpus/mems, instead of
255 * being moved to an ancestor. 258 * being moved to an ancestor.
@@ -468,6 +471,13 @@ struct cftype {
468#endif 471#endif
469}; 472};
470 473
474extern struct cgroup_root cgrp_dfl_root;
475
476static inline bool cgroup_on_dfl(const struct cgroup *cgrp)
477{
478 return cgrp->root == &cgrp_dfl_root;
479}
480
471/* 481/*
472 * See the comment above CGRP_ROOT_SANE_BEHAVIOR for details. This 482 * See the comment above CGRP_ROOT_SANE_BEHAVIOR for details. This
473 * function can be called as long as @cgrp is accessible. 483 * function can be called as long as @cgrp is accessible.