diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 56bcaec9149c..598498904035 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3120,6 +3120,10 @@ static int count_overhead(struct super_block *sb, ext4_group_t grp, | |||
3120 | ext4_group_t i, ngroups = ext4_get_groups_count(sb); | 3120 | ext4_group_t i, ngroups = ext4_get_groups_count(sb); |
3121 | int s, j, count = 0; | 3121 | int s, j, count = 0; |
3122 | 3122 | ||
3123 | if (!EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_BIGALLOC)) | ||
3124 | return (ext4_bg_has_super(sb, grp) + ext4_bg_num_gdb(sb, grp) + | ||
3125 | sbi->s_itb_per_group + 2); | ||
3126 | |||
3123 | first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + | 3127 | first_block = le32_to_cpu(sbi->s_es->s_first_data_block) + |
3124 | (grp * EXT4_BLOCKS_PER_GROUP(sb)); | 3128 | (grp * EXT4_BLOCKS_PER_GROUP(sb)); |
3125 | last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; | 3129 | last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; |