[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211004084928.17622-1-richard.weiyang@gmail.com>
Date: Mon, 4 Oct 2021 08:49:25 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: tj@...nel.org, lizefan.x@...edance.com, hannes@...xchg.org
Cc: cgroups@...r.kernel.org, linux-kernel@...r.kernel.org,
Wei Yang <richard.weiyang@...il.com>
Subject: [PATCH 1/4] cgroup: a u16 is enough for cgroup_subsys.depends_on
After commit 6e5c830770f9 ("cgroup: make cgroup subsystem masks u16"),
we limit the number of subsystem to be less then 16. This applies to
cgroup_subsys.depends_on too.
Signed-off-by: Wei Yang <richard.weiyang@...il.com>
---
include/linux/cgroup-defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h
index db2e147e069f..f6d80896daab 100644
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -705,7 +705,7 @@ struct cgroup_subsys {
* not visible to userland until explicitly enabled. The following
* specifies the mask of subsystems that this one depends on.
*/
- unsigned int depends_on;
+ u16 depends_on;
};
extern struct percpu_rw_semaphore cgroup_threadgroup_rwsem;
--
2.23.0
Powered by blists - more mailing lists