]> www.infradead.org Git - users/willy/xarray.git/commit
cgroup: Do not report unavailable v1 controllers in /proc/cgroups
authorMichal Koutný <mkoutny@suse.com>
Mon, 9 Sep 2024 16:32:23 +0000 (18:32 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 10 Sep 2024 20:04:28 +0000 (10:04 -1000)
commitaf000ce85293b8e608f696f0c6c280bc3a75887f
tree3af3fe827b04bd7c76d2914a90577a5641e9667d
parent3c41382e920f1dd5c9f432948fe799c07af1cced
cgroup: Do not report unavailable v1 controllers in /proc/cgroups

This is a followup to CONFIG-urability of cpuset and memory controllers
for v1 hierarchies. Make the output in /proc/cgroups reflect that
!CONFIG_CPUSETS_V1 is like !CONFIG_CPUSETS and
!CONFIG_MEMCG_V1 is like !CONFIG_MEMCG.

The intended effect is that hiding the unavailable controllers will hint
users not to try mounting them on v1.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup-v1.c