]> git.karo-electronics.de Git - karo-tx-linux.git/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)
commit0a590a2a2d7f3f44e762595206c91368e4453f03
tree9221ab1390c4d5f47d7eb62fce49b6beb1b82e81
parent3c3d00e1fec6be7c0044ff7a32c27bdacfda246b
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