From 456e9892707c2f88b951c67113b265e45a1b2556 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 19 Apr 2008 09:47:37 -0400 Subject: [PATCH] ext2fs_set_gdt_csum: Remove setting of BLOCK_UNINIT This function tried to set BLOCK_UNINIT based on the return value of ext2fs_super_and_bgd_loc. That's not something that works once we start allowing flex_bg since the block group metadata might not be located in the blockgroup itself. Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/csum.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/ext2fs/csum.c b/lib/ext2fs/csum.c index 6fa8dfe..9ff21c3 100644 --- a/lib/ext2fs/csum.c +++ b/lib/ext2fs/csum.c @@ -130,11 +130,6 @@ errcode_t ext2fs_set_gdt_csum(ext2_filsys fs) (ext2fs_bg_has_super(fs, i) && sb->s_reserved_gdt_blocks)) goto checksum; - blks = ext2fs_super_and_bgd_loc(fs, i, 0, 0, 0, 0); - if (bg->bg_free_blocks_count == blks && - bg->bg_flags & EXT2_BG_INODE_UNINIT && - !(bg->bg_flags & EXT2_BG_BLOCK_UNINIT)) - bg->bg_flags |= EXT2_BG_BLOCK_UNINIT; checksum: ext2fs_group_desc_csum_set(fs, i); if (old_flags != bg->bg_flags) -- 1.8.3.1