Skip to contentSkip to conversation

ext4: Remove unneeded code.

PATCH Applied Aneesh Kumar K.V 2 participants 2 messages Nov 18, 2008 – Nov 22, 2008 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: Remove unneeded code.

This also caused an ext4_error when mounting a file system with only one block group.

---
 fs/ext4/super.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
fs/ext4/super.c +0 -3
index 70f6d61..ddfa29b 100644
@@ -1451,7 +1451,6 @@ static int ext4_fill_flex_info(struct super_block *sb)
 	ext4_group_t flex_group_count;
 	ext4_group_t flex_group;
 	int groups_per_flex = 0;
-	__u64 block_bitmap = 0;
 	int i;
 
 	if (!sbi->s_es->s_log_groups_per_flex) {
@@ -1474,9 +1473,6 @@ static int ext4_fill_flex_info(struct super_block *sb)
 		goto failed;
 	}
 
-	gdp = ext4_get_group_desc(sb, 1, &bh);
-	block_bitmap = ext4_block_bitmap(sb, gdp) - 1;
maintainer Applied
#1 lore raw
Quoted 4 lines · Aneesh Kumar K.V

This also caused an ext4_error when mounting a file system with only one block group.

thanks, applied (with a slightly different patch description).

- Ted