diff options
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 5692c48754a0..6df797eb9aeb 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -911,7 +911,8 @@ int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input) | |||
911 | percpu_counter_add(&sbi->s_freeinodes_counter, | 911 | percpu_counter_add(&sbi->s_freeinodes_counter, |
912 | EXT4_INODES_PER_GROUP(sb)); | 912 | EXT4_INODES_PER_GROUP(sb)); |
913 | 913 | ||
914 | if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_FLEX_BG)) { | 914 | if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_FLEX_BG) && |
915 | sbi->s_log_groups_per_flex) { | ||
915 | ext4_group_t flex_group; | 916 | ext4_group_t flex_group; |
916 | flex_group = ext4_flex_group(sbi, input->group); | 917 | flex_group = ext4_flex_group(sbi, input->group); |
917 | atomic_add(input->free_blocks_count, | 918 | atomic_add(input->free_blocks_count, |