ext4: remove wait for unwritten extent conversion from ext4_truncate()
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 18:30:00 +0000 (14:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 18:30:00 +0000 (14:30 -0400)
commita115f749c14ee94e8b7bdbd203a5afdb1659156b
tree6977574e331f21d2fae2247e442a1f8f23560203
parente83403959fddb6d90e8c5e54bbce3110d0c82165
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>
fs/ext4/inode.c
fs/ext4/page-io.c