1 Subject: [PATCH] ext4: avoid ext4_error when mounting a fs with a single bg
3 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
5 Remove some completely unneeded code which which caused an ext4_error
6 to be generated when mounting a file system with only a single block
9 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
10 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
12 fs/ext4/super.c | 4 ----
13 1 files changed, 0 insertions(+), 4 deletions(-)
15 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
16 index 70f6d61..ddfa29b 100644
19 @@ -1451,7 +1451,6 @@ static int ext4_fill_flex_info(struct super_block *sb)
20 ext4_group_t flex_group_count;
21 ext4_group_t flex_group;
22 int groups_per_flex = 0;
23 - __u64 block_bitmap = 0;
26 if (!sbi->s_es->s_log_groups_per_flex) {
27 @@ -1474,9 +1473,6 @@ static int ext4_fill_flex_info(struct super_block *sb)
31 - gdp = ext4_get_group_desc(sb, 1, &bh);
32 - block_bitmap = ext4_block_bitmap(sb, gdp) - 1;
34 for (i = 0; i < sbi->s_groups_count; i++) {
35 gdp = ext4_get_group_desc(sb, i, &bh);