summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-06-04 14:41:29 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-06-04 14:41:29 -0400
commit38b8ff7db4d99ebfabaee81b8747877424d1cf28 (patch)
tree0d2be50e387d1bc8b750da456c7e15bb7d81b024
parent92e6222dfb85db780ebd8caea6a3f9326c375bc0 (diff)
downloadop-kernel-dev-38b8ff7db4d99ebfabaee81b8747877424d1cf28.zip
op-kernel-dev-38b8ff7db4d99ebfabaee81b8747877424d1cf28.tar.gz
ext4: Remove wait for unwritten extents in ext4_ind_direct_IO()
We don't have to wait for unwritten extent conversion in ext4_ind_direct_IO() as all writes that happened before DIO are flushed by the generic code and extent conversion has happened before we cleared PageWriteback bit. 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>
-rw-r--r--fs/ext4/indirect.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/indirect.c b/fs/ext4/indirect.c
index f7742f0..2a1f8a5 100644
--- a/fs/ext4/indirect.c
+++ b/fs/ext4/indirect.c
@@ -675,11 +675,6 @@ ssize_t ext4_ind_direct_IO(int rw, struct kiocb *iocb,
retry:
if (rw == READ && ext4_should_dioread_nolock(inode)) {
- if (unlikely(atomic_read(&EXT4_I(inode)->i_unwritten))) {
- mutex_lock(&inode->i_mutex);
- ext4_flush_unwritten_io(inode);
- mutex_unlock(&inode->i_mutex);
- }
/*
* Nolock dioread optimization may be dynamically disabled
* via ext4_inode_block_unlocked_dio(). Check inode's state
OpenPOWER on IntegriCloud