]> Pileus Git - ~andy/linux/commit
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)
commit92e6222dfb85db780ebd8caea6a3f9326c375bc0
treed57c6ca43d9b57117f5fe029ea0ccdc61a7369ab
parent37b10dd06334ebc89f551d405a0fe27e1a622458
ext4: remove i_mutex from ext4_file_sync()

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>
fs/ext4/fsync.c