From: Christian Brauner Date: Tue, 6 Aug 2024 16:02:27 +0000 (+0200) Subject: proc: proc_readfd() -> proc_fd_iterate() X-Git-Tag: v6.12-rc1~211^2~1^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b69181b871d9fbf8816f03090ef7076cfe1af2c7;p=thirdparty%2Fkernel%2Flinux.git proc: proc_readfd() -> proc_fd_iterate() 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 Signed-off-by: Christian Brauner --- diff --git a/fs/proc/fd.c b/fs/proc/fd.c index 586bbc84ca043..7868333a46e7c 100644 --- a/fs/proc/fd.c +++ b/fs/proc/fd.c @@ -312,14 +312,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, };