diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 9081d1060a5f..627f7ae94ae5 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3534,6 +3534,12 @@ void ext4_ext_truncate(struct inode *inode) | |||
3534 | int err = 0; | 3534 | int err = 0; |
3535 | 3535 | ||
3536 | /* | 3536 | /* |
3537 | * finish any pending end_io work so we won't run the risk of | ||
3538 | * converting any truncated blocks to initialized later | ||
3539 | */ | ||
3540 | ext4_flush_completed_IO(inode); | ||
3541 | |||
3542 | /* | ||
3537 | * probably first extent we're gonna free will be last in block | 3543 | * probably first extent we're gonna free will be last in block |
3538 | */ | 3544 | */ |
3539 | err = ext4_writepage_trans_blocks(inode); | 3545 | err = ext4_writepage_trans_blocks(inode); |