Skip to content

Commit 55d4860

Browse files
committed
proc: proc_readfdinfo() -> proc_fdinfo_iterate()
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@toxicpanda.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent b69181b commit 55d4860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/proc/fd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ proc_lookupfdinfo(struct inode *dir, struct dentry *dentry, unsigned int flags)
407407
return proc_lookupfd_common(dir, dentry, proc_fdinfo_instantiate);
408408
}
409409

410-
static int proc_readfdinfo(struct file *file, struct dir_context *ctx)
410+
static int proc_fdinfo_iterate(struct file *file, struct dir_context *ctx)
411411
{
412412
return proc_readfd_common(file, ctx,
413413
proc_fdinfo_instantiate);
@@ -421,6 +421,6 @@ const struct inode_operations proc_fdinfo_inode_operations = {
421421

422422
const struct file_operations proc_fdinfo_operations = {
423423
.read = generic_read_dir,
424-
.iterate_shared = proc_readfdinfo,
424+
.iterate_shared = proc_fdinfo_iterate,
425425
.llseek = generic_file_llseek,
426426
};

0 commit comments

Comments
 (0)