Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kernfs: bring names in comments in line with code

Fix two stragglers in the comments of the below rename operation.

Fixes: adc5e8b58f48 ("kernfs: drop s_ prefix from kernfs_node members")
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20201015185726.1386868-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Willem de Bruijn and committed by
Greg Kroah-Hartman
21774fd8 f8394f23

+2 -2
+1 -1
fs/kernfs/dir.c
··· 1599 1599 return error; 1600 1600 } 1601 1601 1602 - /* Relationship between s_mode and the DT_xxx types */ 1602 + /* Relationship between mode and the DT_xxx types */ 1603 1603 static inline unsigned char dt_type(struct kernfs_node *kn) 1604 1604 { 1605 1605 return (kn->mode >> 12) & 15;
+1 -1
include/linux/kernfs.h
··· 116 116 * kernfs node is represented by single kernfs_node. Most fields are 117 117 * private to kernfs and shouldn't be accessed directly by kernfs users. 118 118 * 119 - * As long as s_count reference is held, the kernfs_node itself is 119 + * As long as count reference is held, the kernfs_node itself is 120 120 * accessible. Dereferencing elem or any other outer entity requires 121 121 * active reference. 122 122 */