[Devel] [VZ10 v2 11/21] ve/aio: Hide aio pid_entry under CONFIG_VE

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Fri May 15 23:01:51 MSK 2026


This entry uses proc_aio_operations, which is defined only
with CONFIG_VE.

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

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 8397d5017de5..47b82c424ab7 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -3564,7 +3564,7 @@ static const struct pid_entry tgid_base_stuff[] = {
 	REG("timers",	  S_IRUGO, proc_timers_operations),
 #endif
 	REG("timerslack_ns", S_IRUGO|S_IWUGO, proc_pid_set_timerslack_ns_operations),
-#ifdef CONFIG_CHECKPOINT_RESTORE
+#if defined(CONFIG_CHECKPOINT_RESTORE) && defined(CONFIG_VE)
 	REG("aio",	  S_IRUGO|S_IWUSR, proc_aio_operations),
 #endif
 #ifdef CONFIG_LIVEPATCH
-- 
2.43.0



More information about the Devel mailing list