diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 3b6ff72026f0..765a4826b118 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3142,7 +3142,7 @@ out: | |||
3142 | * But fallocate would have already updated quota and block | 3142 | * But fallocate would have already updated quota and block |
3143 | * count for this offset. So cancel these reservation | 3143 | * count for this offset. So cancel these reservation |
3144 | */ | 3144 | */ |
3145 | if (flags & EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE) | 3145 | if (flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE) |
3146 | ext4_da_update_reserve_space(inode, allocated, 0); | 3146 | ext4_da_update_reserve_space(inode, allocated, 0); |
3147 | 3147 | ||
3148 | map_out: | 3148 | map_out: |
@@ -3388,7 +3388,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
3388 | * Update reserved blocks/metadata blocks after successful | 3388 | * Update reserved blocks/metadata blocks after successful |
3389 | * block allocation which had been deferred till now. | 3389 | * block allocation which had been deferred till now. |
3390 | */ | 3390 | */ |
3391 | if (flags & EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE) | 3391 | if (flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE) |
3392 | ext4_da_update_reserve_space(inode, allocated, 1); | 3392 | ext4_da_update_reserve_space(inode, allocated, 1); |
3393 | 3393 | ||
3394 | /* | 3394 | /* |