mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
8400291e28
commit
b69181b871
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user