diff options
| author | 2022-09-06 09:38:42 -1000 | |
|---|---|---|
| committer | 2022-09-06 09:38:42 -1000 | |
| commit | 0083d27b21dd2a598df8275b98f89ced532e2e53 (patch) | |
| tree | db78020e98048585f96670af1da28bf2d0b3e855 /include/linux | |
| parent | kselftest/cgroup: Add cpuset v2 partition root state test (diff) | |
| download | linux-dev-0083d27b21dd2a598df8275b98f89ced532e2e53.tar.xz linux-dev-0083d27b21dd2a598df8275b98f89ced532e2e53.zip | |
cgroup: Improve cftype add/rm error handling
Let's track whether a cftype is currently added or not using a new flag
__CFTYPE_ADDED so that duplicate operations can be failed safely and
consistently allow using empty cftypes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cgroup-defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 1283993d7ea8..9fa1652d0493 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -131,6 +131,7 @@ enum { /* internal flags, do not use outside cgroup core proper */ __CFTYPE_ONLY_ON_DFL = (1 << 16), /* only on default hierarchy */ __CFTYPE_NOT_ON_DFL = (1 << 17), /* not on default hierarchy */ + __CFTYPE_ADDED = (1 << 18), }; /* |
