diff options
author | Jan Kara <jack@suse.cz> | 2013-03-04 00:43:32 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-03-04 00:43:32 -0500 |
commit | de99fcce1da7933a90198b80a2e896754ea3bdc8 (patch) | |
tree | 950da2e0084f025a2ea92fd807396f366e1dcf1b | |
parent | ff95ec22cd7faa0d8b58dcc4207f21502df7b00b (diff) |
ext4: remove unnecessary wait for extent conversion in ext4_fallocate()
Now that we don't merge uninitialized extents anymore,
ext4_fallocate() is free to operate on the inode while there are still
some extent conversions pending - it won't disturb them in any way.
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Reviewed-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 265cb0e50c51..25c86aaa38d6 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -4392,8 +4392,6 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) | |||
4392 | if (len <= EXT_UNINIT_MAX_LEN << blkbits) | 4392 | if (len <= EXT_UNINIT_MAX_LEN << blkbits) |
4393 | flags |= EXT4_GET_BLOCKS_NO_NORMALIZE; | 4393 | flags |= EXT4_GET_BLOCKS_NO_NORMALIZE; |
4394 | 4394 | ||
4395 | /* Prevent race condition between unwritten */ | ||
4396 | ext4_flush_unwritten_io(inode); | ||
4397 | retry: | 4395 | retry: |
4398 | while (ret >= 0 && ret < max_blocks) { | 4396 | while (ret >= 0 && ret < max_blocks) { |
4399 | map.m_lblk = map.m_lblk + ret; | 4397 | map.m_lblk = map.m_lblk + ret; |