]> Pileus Git - ~andy/linux/commit
ext4: don't wait for extent conversion in ext4_punch_hole()
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 18:44:36 +0000 (14:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 18:44:36 +0000 (14:44 -0400)
commitc724585b62411f7abdea5b1054b9f1e1e7c964be
tree9221ab1390c4d5f47d7eb62fce49b6beb1b82e81
parent38b8ff7db4d99ebfabaee81b8747877424d1cf28
ext4: don't wait for extent conversion in ext4_punch_hole()

We don't have to wait for extent conversion in ext4_punch_hole() as
buffered IO for the punched range has been flushed and waited upon
(thus all extent conversions for that range have completed).  Also we
wait for all DIO to finish using inode_dio_wait() so there cannot be
any extent conversions pending due to direct IO.

Also remove ext4_flush_unwritten_io() since it's unused now.

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/ext4.h
fs/ext4/inode.c
fs/ext4/page-io.c