diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index c955f6490b78..e11952404e02 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1316,7 +1316,7 @@ int ext4_get_blocks(handle_t *handle, struct inode *inode, sector_t block, | |||
1316 | * reserve space here. | 1316 | * reserve space here. |
1317 | */ | 1317 | */ |
1318 | if ((retval > 0) && | 1318 | if ((retval > 0) && |
1319 | (flags & EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE)) | 1319 | (flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE)) |
1320 | ext4_da_update_reserve_space(inode, retval, 1); | 1320 | ext4_da_update_reserve_space(inode, retval, 1); |
1321 | } | 1321 | } |
1322 | if (flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE) | 1322 | if (flags & EXT4_GET_BLOCKS_DELALLOC_RESERVE) |
@@ -2219,10 +2219,10 @@ static int mpage_da_map_blocks(struct mpage_da_data *mpd) | |||
2219 | * variables are updated after the blocks have been allocated. | 2219 | * variables are updated after the blocks have been allocated. |
2220 | */ | 2220 | */ |
2221 | new.b_state = 0; | 2221 | new.b_state = 0; |
2222 | get_blocks_flags = (EXT4_GET_BLOCKS_CREATE | | 2222 | get_blocks_flags = EXT4_GET_BLOCKS_CREATE; |
2223 | EXT4_GET_BLOCKS_DELALLOC_RESERVE); | ||
2224 | if (mpd->b_state & (1 << BH_Delay)) | 2223 | if (mpd->b_state & (1 << BH_Delay)) |
2225 | get_blocks_flags |= EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE; | 2224 | get_blocks_flags |= EXT4_GET_BLOCKS_DELALLOC_RESERVE; |
2225 | |||
2226 | blks = ext4_get_blocks(handle, mpd->inode, next, max_blocks, | 2226 | blks = ext4_get_blocks(handle, mpd->inode, next, max_blocks, |
2227 | &new, get_blocks_flags); | 2227 | &new, get_blocks_flags); |
2228 | if (blks < 0) { | 2228 | if (blks < 0) { |