diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/extents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 47929c4e3dae..f7a746b5b7be 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2716,13 +2716,13 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
2716 | goto out2; | 2716 | goto out2; |
2717 | } | 2717 | } |
2718 | 2718 | ||
2719 | if (extend_disksize && inode->i_size > EXT4_I(inode)->i_disksize) | ||
2720 | EXT4_I(inode)->i_disksize = inode->i_size; | ||
2721 | |||
2722 | /* previous routine could use block we allocated */ | 2719 | /* previous routine could use block we allocated */ |
2723 | newblock = ext_pblock(&newex); | 2720 | newblock = ext_pblock(&newex); |
2724 | allocated = ext4_ext_get_actual_len(&newex); | 2721 | allocated = ext4_ext_get_actual_len(&newex); |
2725 | outnew: | 2722 | outnew: |
2723 | if (extend_disksize && inode->i_size > EXT4_I(inode)->i_disksize) | ||
2724 | EXT4_I(inode)->i_disksize = inode->i_size; | ||
2725 | |||
2726 | __set_bit(BH_New, &bh_result->b_state); | 2726 | __set_bit(BH_New, &bh_result->b_state); |
2727 | 2727 | ||
2728 | /* Cache only when it is _not_ an uninitialized extent */ | 2728 | /* Cache only when it is _not_ an uninitialized extent */ |