diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2009-01-05 21:51:07 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-01-05 21:51:07 -0500 |
commit | 565a9617b2151e21b22700e97a8b04e70e103153 (patch) | |
tree | d40db2a54cb27db9dda80b0a47405a6ae19d0fc1 | |
parent | 791b7f08954869d7b8ff438f3dac3cfb39778297 (diff) |
ext4: avoid ext4_error when mounting a fs with a single bg
Remove some completely unneeded code which which caused an ext4_error
to be generated when mounting a file system with only a single block
group.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
-rw-r--r-- | fs/ext4/super.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 08fc86a358d3..81aed8b825a0 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1445,7 +1445,6 @@ static int ext4_fill_flex_info(struct super_block *sb) | |||
1445 | ext4_group_t flex_group_count; | 1445 | ext4_group_t flex_group_count; |
1446 | ext4_group_t flex_group; | 1446 | ext4_group_t flex_group; |
1447 | int groups_per_flex = 0; | 1447 | int groups_per_flex = 0; |
1448 | __u64 block_bitmap = 0; | ||
1449 | int i; | 1448 | int i; |
1450 | 1449 | ||
1451 | if (!sbi->s_es->s_log_groups_per_flex) { | 1450 | if (!sbi->s_es->s_log_groups_per_flex) { |
@@ -1468,9 +1467,6 @@ static int ext4_fill_flex_info(struct super_block *sb) | |||
1468 | goto failed; | 1467 | goto failed; |
1469 | } | 1468 | } |
1470 | 1469 | ||
1471 | gdp = ext4_get_group_desc(sb, 1, &bh); | ||
1472 | block_bitmap = ext4_block_bitmap(sb, gdp) - 1; | ||
1473 | |||
1474 | for (i = 0; i < sbi->s_groups_count; i++) { | 1470 | for (i = 0; i < sbi->s_groups_count; i++) { |
1475 | gdp = ext4_get_group_desc(sb, i, &bh); | 1471 | gdp = ext4_get_group_desc(sb, i, &bh); |
1476 | 1472 | ||