diff options
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r-- | fs/ext4/mballoc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 92aa05ddef66..307d447bbc43 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -4732,9 +4732,9 @@ void ext4_add_groupblocks(handle_t *handle, struct super_block *sb, | |||
4732 | * Check to see if we are freeing blocks across a group | 4732 | * Check to see if we are freeing blocks across a group |
4733 | * boundary. | 4733 | * boundary. |
4734 | */ | 4734 | */ |
4735 | if (bit + count > EXT4_BLOCKS_PER_GROUP(sb)) { | 4735 | if (bit + count > EXT4_BLOCKS_PER_GROUP(sb)) |
4736 | goto error_return; | 4736 | goto error_return; |
4737 | } | 4737 | |
4738 | bitmap_bh = ext4_read_block_bitmap(sb, block_group); | 4738 | bitmap_bh = ext4_read_block_bitmap(sb, block_group); |
4739 | if (!bitmap_bh) | 4739 | if (!bitmap_bh) |
4740 | goto error_return; | 4740 | goto error_return; |
@@ -4753,12 +4753,8 @@ void ext4_add_groupblocks(handle_t *handle, struct super_block *sb, | |||
4753 | goto error_return; | 4753 | goto error_return; |
4754 | } | 4754 | } |
4755 | 4755 | ||
4756 | /* | 4756 | BUFFER_TRACE(bitmap_bh, "getting write access"); |
4757 | * We are about to add blocks to the bitmap, | 4757 | err = ext4_journal_get_write_access(handle, bitmap_bh); |
4758 | * so we need undo access. | ||
4759 | */ | ||
4760 | BUFFER_TRACE(bitmap_bh, "getting undo access"); | ||
4761 | err = ext4_journal_get_undo_access(handle, bitmap_bh); | ||
4762 | if (err) | 4758 | if (err) |
4763 | goto error_return; | 4759 | goto error_return; |
4764 | 4760 | ||