aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/xattr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 1bff752d1b59..3369157df852 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -484,18 +484,19 @@ ext4_xattr_release_block(handle_t *handle, struct inode *inode,
484 ext4_free_blocks(handle, inode, bh, 0, 1, 484 ext4_free_blocks(handle, inode, bh, 0, 1,
485 EXT4_FREE_BLOCKS_METADATA | 485 EXT4_FREE_BLOCKS_METADATA |
486 EXT4_FREE_BLOCKS_FORGET); 486 EXT4_FREE_BLOCKS_FORGET);
487 unlock_buffer(bh);
487 } else { 488 } else {
488 le32_add_cpu(&BHDR(bh)->h_refcount, -1); 489 le32_add_cpu(&BHDR(bh)->h_refcount, -1);
490 if (ce)
491 mb_cache_entry_release(ce);
492 unlock_buffer(bh);
489 error = ext4_handle_dirty_metadata(handle, inode, bh); 493 error = ext4_handle_dirty_metadata(handle, inode, bh);
490 if (IS_SYNC(inode)) 494 if (IS_SYNC(inode))
491 ext4_handle_sync(handle); 495 ext4_handle_sync(handle);
492 dquot_free_block(inode, 1); 496 dquot_free_block(inode, 1);
493 ea_bdebug(bh, "refcount now=%d; releasing", 497 ea_bdebug(bh, "refcount now=%d; releasing",
494 le32_to_cpu(BHDR(bh)->h_refcount)); 498 le32_to_cpu(BHDR(bh)->h_refcount));
495 if (ce)
496 mb_cache_entry_release(ce);
497 } 499 }
498 unlock_buffer(bh);
499out: 500out:
500 ext4_std_error(inode->i_sb, error); 501 ext4_std_error(inode->i_sb, error);
501 return; 502 return;