diff options
author | Jan Kara <jack@suse.cz> | 2013-06-04 14:30:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-04 14:30:00 -0400 |
commit | a115f749c14ee94e8b7bdbd203a5afdb1659156b (patch) | |
tree | 6977574e331f21d2fae2247e442a1f8f23560203 /fs/ext4/inode.c | |
parent | e83403959fddb6d90e8c5e54bbce3110d0c82165 (diff) | |
download | op-kernel-dev-a115f749c14ee94e8b7bdbd203a5afdb1659156b.zip op-kernel-dev-a115f749c14ee94e8b7bdbd203a5afdb1659156b.tar.gz |
ext4: remove wait for unwritten extent conversion from ext4_truncate()
Since PageWriteback bit is now cleared after extents are converted
from unwritten to written ones, we have full exclusion of writeback
path from truncate (truncate_inode_pages() waits for PageWriteback
bits to get cleared on all invalidated pages). Exclusion from DIO
path is achieved by inode_dio_wait() call in ext4_setattr(). So
there's no need to wait for extent convertion in ext4_truncate()
anymore.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index eb4ddfe..d6e4f0e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3643,12 +3643,6 @@ void ext4_truncate(struct inode *inode) return; } - /* - * finish any pending end_io work so we won't run the risk of - * converting any truncated blocks to initialized later - */ - ext4_flush_unwritten_io(inode); - if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) credits = ext4_writepage_trans_blocks(inode); else |