aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index ae26c37e398e..cca7fd53ad7b 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -2063,7 +2063,7 @@ ext4_fsblk_t ext4_new_meta_blocks(handle_t *handle, struct inode *inode,
2063 /* 2063 /*
2064 * Account for the allocated meta blocks 2064 * Account for the allocated meta blocks
2065 */ 2065 */
2066 if (!(*errp)) { 2066 if (!(*errp) && EXT4_I(inode)->i_delalloc_reserved_flag) {
2067 spin_lock(&EXT4_I(inode)->i_block_reservation_lock); 2067 spin_lock(&EXT4_I(inode)->i_block_reservation_lock);
2068 EXT4_I(inode)->i_allocated_meta_blocks += *count; 2068 EXT4_I(inode)->i_allocated_meta_blocks += *count;
2069 spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); 2069 spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);