|
@@ -3120,6 +3120,10 @@ static int count_overhead(struct super_block *sb, ext4_group_t grp,
|
|
|
ext4_group_t i, ngroups = ext4_get_groups_count(sb);
|
|
|
int s, j, count = 0;
|
|
|
|
|
|
+ if (!EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_BIGALLOC))
|
|
|
+ return (ext4_bg_has_super(sb, grp) + ext4_bg_num_gdb(sb, grp) +
|
|
|
+ sbi->s_itb_per_group + 2);
|
|
|
+
|
|
|
first_block = le32_to_cpu(sbi->s_es->s_first_data_block) +
|
|
|
(grp * EXT4_BLOCKS_PER_GROUP(sb));
|
|
|
last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1;
|