|
@@ -2342,7 +2342,7 @@ static int ext4_check_descriptors(struct super_block *sb,
|
|
|
struct ext4_sb_info *sbi = EXT4_SB(sb);
|
|
|
ext4_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block);
|
|
|
ext4_fsblk_t last_block;
|
|
|
- ext4_fsblk_t last_bg_block = sb_block + ext4_bg_num_gdb(sb, 0) + 1;
|
|
|
+ ext4_fsblk_t last_bg_block = sb_block + ext4_bg_num_gdb(sb, 0);
|
|
|
ext4_fsblk_t block_bitmap;
|
|
|
ext4_fsblk_t inode_bitmap;
|
|
|
ext4_fsblk_t inode_table;
|
|
@@ -4085,14 +4085,13 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
|
|
|
goto failed_mount2;
|
|
|
}
|
|
|
}
|
|
|
+ sbi->s_gdb_count = db_count;
|
|
|
if (!ext4_check_descriptors(sb, logical_sb_block, &first_not_zeroed)) {
|
|
|
ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
|
|
|
ret = -EFSCORRUPTED;
|
|
|
goto failed_mount2;
|
|
|
}
|
|
|
|
|
|
- sbi->s_gdb_count = db_count;
|
|
|
-
|
|
|
timer_setup(&sbi->s_err_report, print_daily_error_info, 0);
|
|
|
|
|
|
/* Register extent status tree shrinker */
|