diff options
author | Tejun Heo <tj@kernel.org> | 2016-02-22 22:25:47 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-02-22 22:25:47 -0500 |
commit | 6e5c830770f9045a17b1b931c3e11fbd5591e630 (patch) | |
tree | d346d77769be1ff22177e00f5c99a305cf1480e3 /include/linux/cgroup-defs.h | |
parent | 996cd1fb7383cf087496e8a441bb10b9873b1eb6 (diff) | |
download | linux-stable-6e5c830770f9045a17b1b931c3e11fbd5591e630.tar.gz linux-stable-6e5c830770f9045a17b1b931c3e11fbd5591e630.tar.bz2 linux-stable-6e5c830770f9045a17b1b931c3e11fbd5591e630.zip |
cgroup: make cgroup subsystem masks u16
After the recent do_each_subsys_mask() conversion, there's no reason
to use ulong for subsystem masks. We'll be adding more subsystem
masks to persistent data structures, let's reduce its size to u16
which should be enough for now and the foreseeable future.
This doesn't create any noticeable behavior differences.
v2: Johannes spotted that the initial patch missed cgroup_no_v1_mask.
Converted.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'include/linux/cgroup-defs.h')
-rw-r--r-- | include/linux/cgroup-defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index c68ae7f0fb5f..0abf6aa86c81 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -257,8 +257,8 @@ struct cgroup { * one which may have more subsystems enabled. Controller knobs * are made available iff it's enabled in ->subtree_control. */ - unsigned long subtree_control; - unsigned long subtree_ss_mask; + u16 subtree_control; + u16 subtree_ss_mask; /* Private pointers for each registered subsystem */ struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT]; |