fs/jffs2: fix comments mentioning i_mutex
authorhongnanli <hongnan.li@linux.alibaba.com>
Fri, 11 Feb 2022 03:19:28 +0000 (11:19 +0800)
committerRichard Weinberger <richard@nod.at>
Wed, 16 Mar 2022 21:02:48 +0000 (22:02 +0100)
inode->i_mutex has been replaced with inode->i_rwsem long ago. Fix
comments still mentioning i_mutex.

Signed-off-by: hongnanli <hongnan.li@linux.alibaba.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/jffs2/jffs2_fs_i.h

index 2e4a867..93a2951 100644 (file)
 #include <linux/mutex.h>
 
 struct jffs2_inode_info {
-       /* We need an internal mutex similar to inode->i_mutex.
+       /* We need an internal mutex similar to inode->i_rwsem.
           Unfortunately, we can't used the existing one, because
           either the GC would deadlock, or we'd have to release it
           before letting GC proceed. Or we'd have to put ugliness
-          into the GC code so it didn't attempt to obtain the i_mutex
+          into the GC code so it didn't attempt to obtain the i_rwsem
           for the inode(s) which are already locked */
        struct mutex sem;