ve0 doesn't exist when !CONFIG_VE.

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <[email protected]>
---
 fs/sysctls.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/sysctls.c b/fs/sysctls.c
index dfe2782f58f4..3c68cbdf6914 100644
--- a/fs/sysctls.c
+++ b/fs/sysctls.c
@@ -28,6 +28,7 @@ static struct ctl_table fs_shared_sysctls[] = {
                .extra1         = SYSCTL_ZERO,
                .extra2         = SYSCTL_MAXOLDUID,
        },
+#ifdef CONFIG_VE
        {
                .procname       = "odirect_enable",
                .data           = &ve0.odirect_enable,
@@ -35,6 +36,7 @@ static struct ctl_table fs_shared_sysctls[] = {
                .mode           = 0644 | S_ISVTX,
                .proc_handler   = proc_dointvec_virtual,
        },
+#endif
 };
 
 static int __init init_fs_sysctls(void)
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to