linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernfs: bring names in comments in line with code
@ 2020-10-15 18:57 Willem de Bruijn
  2020-10-19 14:41 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Willem de Bruijn @ 2020-10-15 18:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: gregkh, tj, Willem de Bruijn

From: Willem de Bruijn <willemb@google.com>

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

Fixes: adc5e8b58f48 ("kernfs: drop s_ prefix from kernfs_node members")
Signed-off-by: Willem de Bruijn <willemb@google.com>
---
 fs/kernfs/dir.c        | 2 +-
 include/linux/kernfs.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c
index 9aec80b9d7c6..ea3c95125bf1 100644
--- a/fs/kernfs/dir.c
+++ b/fs/kernfs/dir.c
@@ -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;
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h
index 89f6a4214a70..9e8ca8743c26 100644
--- a/include/linux/kernfs.h
+++ b/include/linux/kernfs.h
@@ -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.
  */
-- 
2.29.0.rc1.297.gfa9743e501-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernfs: bring names in comments in line with code
  2020-10-15 18:57 [PATCH] kernfs: bring names in comments in line with code Willem de Bruijn
@ 2020-10-19 14:41 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2020-10-19 14:41 UTC (permalink / raw)
  To: Willem de Bruijn; +Cc: linux-kernel, gregkh, Willem de Bruijn

On Thu, Oct 15, 2020 at 02:57:26PM -0400, Willem de Bruijn wrote:
> From: Willem de Bruijn <willemb@google.com>
> 
> Fix two stragglers in the comments of the below rename operation.
> 
> Fixes: adc5e8b58f48 ("kernfs: drop s_ prefix from kernfs_node members")
> Signed-off-by: Willem de Bruijn <willemb@google.com>

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-19 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 18:57 [PATCH] kernfs: bring names in comments in line with code Willem de Bruijn
2020-10-19 14:41 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).