projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8400291
)
proc: proc_readfd() -> proc_fd_iterate()
author
Christian Brauner
<brauner@kernel.org>
Tue, 6 Aug 2024 16:02:27 +0000
(18:02 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Fri, 30 Aug 2024 06:21:34 +0000
(08:21 +0200)
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>
fs/proc/fd.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/fd.c
b/fs/proc/fd.c
index 586bbc84ca04307a4962f6d06bca9409b206e080..7868333a46e7c858fc1a07d887d6fcd968ce22b1 100644
(file)
--- 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,
};