[Devel] [PATCH VZ10 v4 26/44] fixup! cgroup-v2: Add a new API to hide cgroup files per controller
Vladimir Riabchun
vladimir.riabchun at virtuozzo.com
Wed Jun 3 00:10:44 MSK 2026
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>
---
kernel/cgroup/cgroup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 0a76aa056c0f..5338dfab27bd 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);
--
2.47.1
More information about the Devel
mailing list