summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-11-06 17:15:51 -0600
committerChris Mason <chris.mason@fusionio.com>2013-11-07 16:10:41 -0500
commit18800f4a318704bb62039b6d2af50ee9bb077138 (patch)
treefdf363aa069b5aaab6b90d04ebf2f689f648ca5f
parent7e29db9e49f1bb23789f2fa34d0ae2e5608dc551 (diff)
btrfs-progs: remove more dead code from check_extent_refs
e0a04278 removed a bunch of dead code but left one little bit; reinit is always 0, so btrfs_read_block_groups is never called from here. Resolves-Coverity-CID: 1125926 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--cmds-check.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 37348a94..a65670e3 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -5040,7 +5040,6 @@ static int check_extent_refs(struct btrfs_trans_handle *trans,
int err = 0;
int ret = 0;
int fixed = 0;
- int reinit = 0;
int had_dups = 0;
if (repair) {
@@ -5066,8 +5065,6 @@ static int check_extent_refs(struct btrfs_trans_handle *trans,
cache = next_cache_extent(cache);
}
prune_corrupt_blocks(trans, root->fs_info);
- if (reinit)
- btrfs_read_block_groups(root->fs_info->extent_root);
reset_cached_block_groups(root->fs_info);
}