Skip to content

Commit 163b438

Browse files
hongnanlirichardweinberger
authored andcommitted
fs/jffs2: fix comments mentioning i_mutex
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>
1 parent c3c07fc commit 163b438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/jffs2/jffs2_fs_i.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
#include <linux/mutex.h>
1919

2020
struct jffs2_inode_info {
21-
/* We need an internal mutex similar to inode->i_mutex.
21+
/* We need an internal mutex similar to inode->i_rwsem.
2222
Unfortunately, we can't used the existing one, because
2323
either the GC would deadlock, or we'd have to release it
2424
before letting GC proceed. Or we'd have to put ugliness
25-
into the GC code so it didn't attempt to obtain the i_mutex
25+
into the GC code so it didn't attempt to obtain the i_rwsem
2626
for the inode(s) which are already locked */
2727
struct mutex sem;
2828

0 commit comments

Comments
 (0)