Skip to contentSkip to conversation

kernfs: bring names in comments in line with code

PATCH In review Willem de Bruijn 2 participants 2 messages Oct 15, 2020 – Oct 19, 2020 kernfs

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernfs: bring names in comments in line with code

From: Willem de Bruijn <[email protected]>

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

Fixes adc5e8b58f48 ("kernfs: drop s_ prefix from kernfs_node members")
---
 fs/kernfs/dir.c        | 2 +-
 include/linux/kernfs.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/kernfs/dir.c +1 -1
index 9aec80b9d7c6..ea3c95125bf1 100644
@@ -1599,7 +1599,7 @@ int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent,
 	return error;
 }
 
-/* Relationship between s_mode and the DT_xxx types */
+/* Relationship between mode and the DT_xxx types */
 static inline unsigned char dt_type(struct kernfs_node *kn)
 {
 	return (kn->mode >> 12) & 15;
include/linux/kernfs.h +1 -1
index 89f6a4214a70..9e8ca8743c26 100644
@@ -116,7 +116,7 @@ struct kernfs_elem_attr {
  * kernfs node is represented by single kernfs_node.  Most fields are
  * private to kernfs and shouldn't be accessed directly by kernfs users.
  *
- * As long as s_count reference is held, the kernfs_node itself is
+ * As long as count reference is held, the kernfs_node itself is
  * accessible.  Dereferencing elem or any other outer entity requires
  * active reference.
  */
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog