[Devel] [PATCH vz9 1/6] proc: proc_readfd() -> proc_fd_iterate()

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Thu Jan 8 12:17:14 MSK 2026


From: Christian Brauner <brauner at kernel.org>

Give the method to iterate through the fd directory a better name.

Link: https://lore.kernel.org/r/20240806-work-procfs-v1-1-fb04e1d09f0c@kernel.org
Reviewed-by: Josef Bacik <josef at toxicpanda.com>
Signed-off-by: Christian Brauner <brauner at kernel.org>
(cherry picked from commit 4f259bd4c26119eee68657e9dd69da3a29393c28)

https://virtuozzo.atlassian.net/browse/VSTOR-121919
Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
 fs/proc/fd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/proc/fd.c b/fs/proc/fd.c
index 172c86270b31..bb9ca750df86 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -269,14 +269,14 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx,
 	return 0;
 }
 
-static int proc_readfd(struct file *file, struct dir_context *ctx)
+static int proc_fd_iterate(struct file *file, struct dir_context *ctx)
 {
 	return proc_readfd_common(file, ctx, proc_fd_instantiate);
 }
 
 const struct file_operations proc_fd_operations = {
 	.read		= generic_read_dir,
-	.iterate_shared	= proc_readfd,
+	.iterate_shared	= proc_fd_iterate,
 	.llseek		= generic_file_llseek,
 };
 
-- 
2.43.0



More information about the Devel mailing list