[SRU][N][PATCH 2/6] proc: proc_readfdinfo() -> proc_fdinfo_iterate()

Yufeng Gao yufeng.gao at canonical.com
Wed May 27 00:40:53 UTC 2026


From: Christian Brauner <brauner at kernel.org>

BugLink: https://bugs.launchpad.net/bugs/2137199

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

Link: https://lore.kernel.org/r/20240806-work-procfs-v1-2-fb04e1d09f0c@kernel.org
Reviewed-by: Josef Bacik <josef at toxicpanda.com>
Signed-off-by: Christian Brauner <brauner at kernel.org>
(cherry picked from commit 55d4860db2a0ae54367401aa09b8fad38f237bfa)
Signed-off-by: Yufeng Gao <yufeng.gao at canonical.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 f95554248cc0..e29d2d6e7ddb 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -409,7 +409,7 @@ proc_lookupfdinfo(struct inode *dir, struct dentry *dentry, unsigned int flags)
 	return proc_lookupfd_common(dir, dentry, proc_fdinfo_instantiate);
 }
 
-static int proc_readfdinfo(struct file *file, struct dir_context *ctx)
+static int proc_fdinfo_iterate(struct file *file, struct dir_context *ctx)
 {
 	return proc_readfd_common(file, ctx,
 				  proc_fdinfo_instantiate);
@@ -423,6 +423,6 @@ const struct inode_operations proc_fdinfo_inode_operations = {
 
 const struct file_operations proc_fdinfo_operations = {
 	.read		= generic_read_dir,
-	.iterate_shared	= proc_readfdinfo,
+	.iterate_shared	= proc_fdinfo_iterate,
 	.llseek		= generic_file_llseek,
 };
-- 
2.43.0




More information about the kernel-team mailing list