summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-02-23 06:25:47 +0300
committerTejun Heo <tj@kernel.org>2016-02-23 06:25:47 +0300
commit6e5c830770f9045a17b1b931c3e11fbd5591e630 (patch)
treed346d77769be1ff22177e00f5c99a305cf1480e3 /include/linux
parent996cd1fb7383cf087496e8a441bb10b9873b1eb6 (diff)
downloadlinux-6e5c830770f9045a17b1b931c3e11fbd5591e630.tar.xz
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')
-rw-r--r--include/linux/cgroup-defs.h4
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];