Commit cfbb036b authored by Xin Gao's avatar Xin Gao Committed by Baokun Li
Browse files

fsnotify: Fix comment typo

stable inclusion
from stable-v5.10.220
commit 302ae1fb80a3689397747cf7da06d70ea9fb5aab
category: cleanup
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAVU3A
CVE: CVE-2024-47660

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=302ae1fb80a3689397747cf7da06d70ea9fb5aab



--------------------------------

[ Upstream commit feee1ce4 ]

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

Signed-off-by: default avatarXin Gao <gaoxin@cdjrlc.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220722194639.18545-1-gaoxin@cdjrlc.com


Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
parent cc5e1415
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,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)