]> Pileus Git - ~andy/linux/commitdiff
ext4: remove i_mutex from ext4_file_sync()
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 18:40:39 +0000 (14:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 18:40:39 +0000 (14:40 -0400)
After removal of ext4_flush_unwritten_io() call, ext4_file_sync()
doesn't need i_mutex anymore. Forcing of transaction commits doesn't
need i_mutex as there's nothing inode specific in that code apart from
grabbing transaction ids from the inode. So remove the lock.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found