[Devel] [VZ10 v2 15/21] ve/fs: Define ve_fsync_behavior only when CONFIG_VE
Vladimir Riabchun
vladimir.riabchun at virtuozzo.com
Fri May 15 23:01:55 MSK 2026
Otherwise there is an error:
fs/sync.c:127:5: error: redefinition of 've_fsync_behavior'
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
fs/sync.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/sync.c b/fs/sync.c
index b851c6b48f6d..c0114b90c3e9 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -124,6 +124,7 @@ static int __ve_fsync_behavior(struct ve_struct *ve)
return 0;
}
+#ifdef CONFIG_VE
int ve_fsync_behavior(void)
{
struct ve_struct *ve;
@@ -134,6 +135,7 @@ int ve_fsync_behavior(void)
else
return __ve_fsync_behavior(ve);
}
+#endif
/*
* Sync everything. We start by waking flusher threads so that most of
--
2.43.0
More information about the Devel
mailing list