diff options
author | Waiman Long <longman@redhat.com> | 2017-08-17 22:33:09 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-08-18 18:24:21 +0300 |
commit | e1cba4b85daa71b710384d451ff6238d5e4d1ff6 (patch) | |
tree | d3d9847b654a3b4ae59e57fcbd9c81c2df533c23 /include/linux/cgroup-defs.h | |
parent | 696b98f244f77a79840bf420861c996d61c82637 (diff) | |
download | linux-e1cba4b85daa71b710384d451ff6238d5e4d1ff6.tar.xz |
cgroup: Add mount flag to enable cpuset to use v2 behavior in v1 cgroup
A new mount option "cpuset_v2_mode" is added to the v1 cgroupfs
filesystem to enable cpuset controller to use v2 behavior in a v1
cgroup. This mount option applies only to cpuset controller and have
no effect on other controllers.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup-defs.h')
-rw-r--r-- | include/linux/cgroup-defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 59e4ad9e7bac..ade4a78a54c2 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -74,6 +74,11 @@ enum { * aren't writeable from inside the namespace. */ CGRP_ROOT_NS_DELEGATE = (1 << 3), + + /* + * Enable cpuset controller in v1 cgroup to use v2 behavior. + */ + CGRP_ROOT_CPUSET_V2_MODE = (1 << 4), }; /* cftype->flags */ |