|
@@ -762,7 +762,6 @@ got:
|
|
|
|
|
|
BUFFER_TRACE(block_bitmap_bh, "dirty block bitmap");
|
|
|
err = ext4_handle_dirty_metadata(handle, NULL, block_bitmap_bh);
|
|
|
- brelse(block_bitmap_bh);
|
|
|
|
|
|
/* recheck and clear flag under lock if we still need to */
|
|
|
ext4_lock_group(sb, group);
|
|
@@ -775,6 +774,7 @@ got:
|
|
|
ext4_group_desc_csum_set(sb, group, gdp);
|
|
|
}
|
|
|
ext4_unlock_group(sb, group);
|
|
|
+ brelse(block_bitmap_bh);
|
|
|
|
|
|
if (err)
|
|
|
goto fail;
|