btrfs-progs: remove unused arguments
authorZach Brown <zab@redhat.com>
Wed, 23 Jan 2013 22:54:35 +0000 (14:54 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:40 +0000 (16:09 -0800)
add_root_to_pending() took a bunch of arguments that it never used.

Signed-off-by: Zach Brown <zab@redhat.com>
btrfsck.c

index d292540..5897ff2 100644 (file)
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -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]++;