diff options
author | Zach Brown <zab@redhat.com> | 2013-01-23 14:54:35 -0800 |
---|---|---|
committer | Zach Brown <zab@redhat.com> | 2013-02-05 16:09:40 -0800 |
commit | e37d9aa8e1bad3fe067975fd4fcb93d785efef86 (patch) | |
tree | 3c7e974bae94290d6e56e437ad8992cade4ce359 /btrfsck.c | |
parent | f4dc05bf76fbb2c9c2561ff6d3bd3f018829ac3a (diff) |
btrfs-progs: remove unused arguments
add_root_to_pending() took a bunch of arguments that it never used.
Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -2798,12 +2798,9 @@ out: } static int add_root_to_pending(struct extent_buffer *buf, - struct block_info *bits, - int bits_nr, struct cache_tree *extent_cache, struct cache_tree *pending, struct cache_tree *seen, - struct cache_tree *reada, struct cache_tree *nodes, struct btrfs_key *root_key) { @@ -3465,12 +3462,12 @@ static int check_extents(struct btrfs_trans_handle *trans, exit(1); } - add_root_to_pending(root->fs_info->tree_root->node, bits, bits_nr, - &extent_cache, &pending, &seen, &reada, &nodes, + add_root_to_pending(root->fs_info->tree_root->node, + &extent_cache, &pending, &seen, &nodes, &root->fs_info->tree_root->root_key); - add_root_to_pending(root->fs_info->chunk_root->node, bits, bits_nr, - &extent_cache, &pending, &seen, &reada, &nodes, + add_root_to_pending(root->fs_info->chunk_root->node, + &extent_cache, &pending, &seen, &nodes, &root->fs_info->chunk_root->root_key); btrfs_init_path(&path); @@ -3501,9 +3498,8 @@ static int check_extents(struct btrfs_trans_handle *trans, btrfs_root_bytenr(&ri), btrfs_level_size(root, btrfs_root_level(&ri)), 0); - add_root_to_pending(buf, bits, bits_nr, &extent_cache, - &pending, &seen, &reada, &nodes, - &found_key); + add_root_to_pending(buf, &extent_cache, &pending, + &seen, &nodes, &found_key); free_extent_buffer(buf); } path.slots[0]++; |