Skip to content

Commit b69181b

Browse files
committed
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 <josef@toxicpanda.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 8400291 commit b69181b

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
@@ -312,14 +312,14 @@ static int proc_readfd_count(struct inode *inode, loff_t *count)
312312
return 0;
313313
}
314314

315-
static int proc_readfd(struct file *file, struct dir_context *ctx)
315+
static int proc_fd_iterate(struct file *file, struct dir_context *ctx)
316316
{
317317
return proc_readfd_common(file, ctx, proc_fd_instantiate);
318318
}
319319

320320
const struct file_operations proc_fd_operations = {
321321
.read = generic_read_dir,
322-
.iterate_shared = proc_readfd,
322+
.iterate_shared = proc_fd_iterate,
323323
.llseek = generic_file_llseek,
324324
};
325325

0 commit comments

Comments
 (0)