diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index dbe429567eb3..b6ef4da39ce3 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -4691,6 +4691,9 @@ int ext4_group_add_blocks(handle_t *handle, struct super_block *sb, | |||
4691 | 4691 | ||
4692 | ext4_debug("Adding block(s) %llu-%llu\n", block, block + count - 1); | 4692 | ext4_debug("Adding block(s) %llu-%llu\n", block, block + count - 1); |
4693 | 4693 | ||
4694 | if (count == 0) | ||
4695 | return 0; | ||
4696 | |||
4694 | ext4_get_group_no_and_offset(sb, block, &block_group, &bit); | 4697 | ext4_get_group_no_and_offset(sb, block, &block_group, &bit); |
4695 | /* | 4698 | /* |
4696 | * Check to see if we are freeing blocks across a group | 4699 | * Check to see if we are freeing blocks across a group |