[Devel] [PATCH RHEL10 COMMIT] fixup! cgroup-v2: Add a new API to hide cgroup files per controller
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 5 21:32:16 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit d63593072947c08f697f6c5c20f460865310bf84
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date: Tue Jun 2 21:10:44 2026 +0000
fixup! cgroup-v2: Add a new API to hide cgroup files per controller
ve_cgrp_id is not defined when !CONFIG_VE.
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
kernel/cgroup/cgroup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 0a76aa056c0f9..5338dfab27bdb 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6438,6 +6438,7 @@ static struct cgroup *cgroup_create(struct cgroup *parent, const char *name,
*/
if (!cgroup_on_dfl(cgrp))
cgrp->subtree_control = cgroup_control(cgrp);
+#ifdef CONFIG_VE
else
/*
* Hide ve controller by default. Note that ve0 cgroup files
@@ -6445,6 +6446,7 @@ static struct cgroup *cgroup_create(struct cgroup *parent, const char *name,
* not created through cgroup_create().
*/
cgrp->hidden_ss_mask = 1 << ve_cgrp_id;
+#endif /* CONFIG_VE */
cgroup_propagate_control(cgrp);
More information about the Devel
mailing list