diff options
author | Jan Kara <jack@suse.cz> | 2013-06-04 20:44:36 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-04 20:44:36 +0200 |
commit | c724585b62411f7abdea5b1054b9f1e1e7c964be (patch) | |
tree | 9221ab1390c4d5f47d7eb62fce49b6beb1b82e81 /fs/ext4/inode.c | |
parent | ext4: Remove wait for unwritten extents in ext4_ind_direct_IO() (diff) | |
download | linux-c724585b62411f7abdea5b1054b9f1e1e7c964be.tar.xz linux-c724585b62411f7abdea5b1054b9f1e1e7c964be.zip |
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>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index d6e4f0e09a8c..de6dd77f0c56 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3522,9 +3522,6 @@ int ext4_punch_hole(struct file *file, loff_t offset, loff_t length) /* Wait all existing dio workers, newcomers will block on i_mutex */ ext4_inode_block_unlocked_dio(inode); - ret = ext4_flush_unwritten_io(inode); - if (ret) - goto out_dio; inode_dio_wait(inode); if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) |