diff options
Diffstat (limited to 'e2fsck/super.c')
-rw-r--r-- | e2fsck/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c index b8a1df7c..f5abac94 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -468,7 +468,7 @@ void check_super_block(e2fsck_t ctx) struct problem_context pctx; blk_t free_blocks = 0; ino_t free_inodes = 0; - int lazy_flag, csum_flag; + int csum_flag; inodes_per_block = EXT2_INODES_PER_BLOCK(fs->super); ipg_max = inodes_per_block * (blocks_per_group - 4); @@ -578,8 +578,6 @@ void check_super_block(e2fsck_t ctx) first_block = sb->s_first_data_block; last_block = sb->s_blocks_count-1; - lazy_flag = EXT2_HAS_COMPAT_FEATURE(fs->super, - EXT2_FEATURE_COMPAT_LAZY_BG); csum_flag = EXT2_HAS_RO_COMPAT_FEATURE(fs->super, EXT4_FEATURE_RO_COMPAT_GDT_CSUM); for (i = 0, gd=fs->group_desc; i < fs->group_desc_count; i++, gd++) { @@ -641,7 +639,7 @@ void check_super_block(e2fsck_t ctx) ext2fs_unmark_valid(fs); } - if (!lazy_flag && !csum_flag && + if (!csum_flag && (gd->bg_flags &(EXT2_BG_BLOCK_UNINIT|EXT2_BG_INODE_UNINIT)|| gd->bg_itable_unused != 0)){ if (fix_problem(ctx, PR_0_GDT_UNINIT, &pctx)) { |