summaryrefslogtreecommitdiffstats
path: root/fs/proc/fd.c
diff options
context:
space:
mode:
authorYan Zhen <yanzhen@vivo.com>2024-09-09 08:33:53 +0200
committerChristian Brauner <brauner@kernel.org>2024-09-09 09:51:16 +0200
commit698e7d1680544ef114203b0cf656faa0c1216ebc (patch)
tree506823d25159c727164068fc14f4e9d879705ed5 /fs/proc/fd.c
parentfs/pipe: Correct imprecise wording in comment (diff)
downloadlinux-698e7d1680544ef114203b0cf656faa0c1216ebc.tar.xz
linux-698e7d1680544ef114203b0cf656faa0c1216ebc.zip
proc: Fix typo in the comment
The deference here confuses me. Maybe here want to say that because show_fd_locks() does not dereference the files pointer, using the stale value of the files pointer is safe. Correctly spelled comments make it easier for the reader to understand the code. replace 'deferences' with 'dereferences' in the comment & replace 'inialized' with 'initialized' in the comment. Signed-off-by: Yan Zhen <yanzhen@vivo.com> Link: https://lore.kernel.org/r/20240909063353.2246419-1-yanzhen@vivo.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/proc/fd.c')
-rw-r--r--fs/proc/fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/fd.c b/fs/proc/fd.c
index 586bbc84ca04..7baafb1eba13 100644
--- a/fs/proc/fd.c
+++ b/fs/proc/fd.c
@@ -59,7 +59,7 @@ static int seq_show(struct seq_file *m, void *v)
real_mount(file->f_path.mnt)->mnt_id,
file_inode(file)->i_ino);
- /* show_fd_locks() never deferences files so a stale value is safe */
+ /* show_fd_locks() never dereferences files, so a stale value is safe */
show_fd_locks(m, file, files);
if (seq_has_overflowed(m))
goto out;