[SRU][N][PATCH 1/6] proc: proc_readfd() -> proc_fd_iterate()
Yufeng Gao
yufeng.gao at canonical.com
Wed May 27 00:40:52 UTC 2026
From: Christian Brauner <brauner at kernel.org>
BugLink: https://bugs.launchpad.net/bugs/2137199
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 b69181b871d9fbf8816f03090ef7076cfe1af2c7)
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 f4b1c8b42a51..f95554248cc0 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -314,14 +314,14 @@ static int proc_readfd_count(struct inode *inode, loff_t *count)
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 kernel-team
mailing list