Add patch SR-ext4-resize-mark-new-group-EXT_BG_INODE_ZEROED.patch
[ext4-patch-queue/an.git] / avoid-ext4-error-for-single-bg-fs
blobf94a3106a30d8e5c8ef407db130e645505225646
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
7 group.
9 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
10 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
11 ---
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
17 --- a/fs/ext4/super.c
18 +++ b/fs/ext4/super.c
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;
24         int i;
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)
28                 goto failed;
29         }
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);
37 -- 
38 1.6.0.4.735.gea4f