Skip to contentSkip to conversation

fsnotify: Fix comment typo

PATCH In review Xin Gao 2 participants 2 messages Jul 22, 2022 – Jul 26, 2022

Subsystems (2)
lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 fsnotify: Fix comment typo

The double `if' is duplicated in line 104, remove one.

---
 fs/notify/fsnotify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/notify/fsnotify.c +1 -1
index 6eee19d15e8c..a9773167d695 100644
@@ -100,7 +100,7 @@ void fsnotify_sb_delete(struct super_block *sb)
  * Given an inode, first check if we care what happens to our children.  Inotify
  * and dnotify both tell their parents about events.  If we care about any event
  * on a child we run all of our children and set a dentry flag saying that the
- * parent cares.  Thus when an event happens on a child it can quickly tell if
+ * parent cares.  Thus when an event happens on a child it can quickly tell
  * if there is a need to find a parent and send the event to the parent.
  */
 void __fsnotify_update_child_dentry_flags(struct inode *inode)
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 3 lines · Xin Gao

The double `if' is duplicated in line 104, remove one.

Thanks! I've added the patch to my tree.

Honza

Quoted 20 lines
---
 fs/notify/fsnotify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/notify/fsnotify.c +1 -1
index 6eee19d15e8c..a9773167d695 100644
@@ -100,7 +100,7 @@ void fsnotify_sb_delete(struct super_block *sb)
  * Given an inode, first check if we care what happens to our children.  Inotify
  * and dnotify both tell their parents about events.  If we care about any event
  * on a child we run all of our children and set a dentry flag saying that the
- * parent cares.  Thus when an event happens on a child it can quickly tell if
+ * parent cares.  Thus when an event happens on a child it can quickly tell
  * if there is a need to find a parent and send the event to the parent.
  */
 void __fsnotify_update_child_dentry_flags(struct inode *inode)
Signature · 1 line
2.30.2
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR