diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index a86213882655..c969ae23a535 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3560,10 +3560,9 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode, | |||
3560 | } | 3560 | } |
3561 | 3561 | ||
3562 | err = check_eofblocks_fl(handle, inode, map->m_lblk, path, ar.len); | 3562 | err = check_eofblocks_fl(handle, inode, map->m_lblk, path, ar.len); |
3563 | if (err) | 3563 | if (!err) |
3564 | goto out2; | 3564 | err = ext4_ext_insert_extent(handle, inode, path, |
3565 | 3565 | &newex, flags); | |
3566 | err = ext4_ext_insert_extent(handle, inode, path, &newex, flags); | ||
3567 | if (err) { | 3566 | if (err) { |
3568 | int fb_flags = flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE ? | 3567 | int fb_flags = flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE ? |
3569 | EXT4_FREE_BLOCKS_NO_QUOT_UPDATE : 0; | 3568 | EXT4_FREE_BLOCKS_NO_QUOT_UPDATE : 0; |