Skip to content

Commit

Permalink
kernfs: bring names in comments in line with code
Browse files Browse the repository at this point in the history
Fix two stragglers in the comments of the below rename operation.

Fixes: adc5e8b ("kernfs: drop s_ prefix from kernfs_node members")
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
wdebruij authored and gregkh committed Nov 9, 2020
1 parent f8394f2 commit 21774fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/kernfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/kernfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 21774fd

Please sign in to comment.