Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

hongnanli and committed by
Richard Weinberger
163b438b c3c07fc2

+2 -2
+2 -2
fs/jffs2/jffs2_fs_i.h
··· 18 18 #include <linux/mutex.h> 19 19 20 20 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. 22 22 Unfortunately, we can't used the existing one, because 23 23 either the GC would deadlock, or we'd have to release it 24 24 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 26 26 for the inode(s) which are already locked */ 27 27 struct mutex sem; 28 28