Unverified Commit 698e7d16 authored by Yan Zhen's avatar Yan Zhen Committed by Christian Brauner
Browse files

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: default avatarYan Zhen <yanzhen@vivo.com>
Link: https://lore.kernel.org/r/20240909063353.2246419-1-yanzhen@vivo.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 33d8525d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ static int kcore_ram_list(struct list_head *list)
	int nid, ret;
	unsigned long end_pfn;

	/* Not inialized....update now */
	/* Not initialized....update now */
	/* find out "max pfn" */
	end_pfn = 0;
	for_each_node_state(nid, N_MEMORY) {