Btrfs: remove unused argument from select_reloc_root()

@nr is no longer used, remove it from select_reloc_root()

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Wang Shilong 2013-12-26 13:10:49 +08:00 committed by Chris Mason
parent eb653de159
commit dc4103f933
1 changed files with 2 additions and 4 deletions

View File

@ -2454,7 +2454,7 @@ static noinline_for_stack
struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans,
struct reloc_control *rc, struct reloc_control *rc,
struct backref_node *node, struct backref_node *node,
struct backref_edge *edges[], int *nr) struct backref_edge *edges[])
{ {
struct backref_node *next; struct backref_node *next;
struct btrfs_root *root; struct btrfs_root *root;
@ -2496,7 +2496,6 @@ struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans,
if (!root) if (!root)
return NULL; return NULL;
*nr = index;
next = node; next = node;
/* setup backref node path for btrfs_reloc_cow_block */ /* setup backref node path for btrfs_reloc_cow_block */
while (1) { while (1) {
@ -2643,7 +2642,6 @@ static int do_relocation(struct btrfs_trans_handle *trans,
u32 blocksize; u32 blocksize;
u64 bytenr; u64 bytenr;
u64 generation; u64 generation;
int nr;
int slot; int slot;
int ret; int ret;
int err = 0; int err = 0;
@ -2656,7 +2654,7 @@ static int do_relocation(struct btrfs_trans_handle *trans,
cond_resched(); cond_resched();
upper = edge->node[UPPER]; upper = edge->node[UPPER];
root = select_reloc_root(trans, rc, upper, edges, &nr); root = select_reloc_root(trans, rc, upper, edges);
BUG_ON(!root); BUG_ON(!root);
if (upper->eb && !upper->locked) { if (upper->eb && !upper->locked) {