diff options
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 4444317d141a..4e2bdc26b85c 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3450,8 +3450,9 @@ void ext4_ext_truncate(struct inode *inode) | |||
3450 | if (IS_SYNC(inode)) | 3450 | if (IS_SYNC(inode)) |
3451 | ext4_handle_sync(handle); | 3451 | ext4_handle_sync(handle); |
3452 | 3452 | ||
3453 | out_stop: | ||
3454 | up_write(&EXT4_I(inode)->i_data_sem); | 3453 | up_write(&EXT4_I(inode)->i_data_sem); |
3454 | |||
3455 | out_stop: | ||
3455 | /* | 3456 | /* |
3456 | * If this was a simple ftruncate() and the file will remain alive, | 3457 | * If this was a simple ftruncate() and the file will remain alive, |
3457 | * then we need to clear up the orphan record which we created above. | 3458 | * then we need to clear up the orphan record which we created above. |