aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-12-26 00:10:49 -0500
committerChris Mason <clm@fb.com>2014-01-28 16:20:12 -0500
commitdc4103f933291cb1a2e6742c4db432e6ed337bae (patch)
treef1fe148b1bc2d4529bb3f590b018a800fa1c7037 /fs/btrfs/relocation.c
parenteb653de15987612444b6cde3b0e67b1edd94625f (diff)
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>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r--fs/btrfs/relocation.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 8cf99c496ff3..277b8e371fa5 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -2454,7 +2454,7 @@ static noinline_for_stack
2454struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans, 2454struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans,
2455 struct reloc_control *rc, 2455 struct reloc_control *rc,
2456 struct backref_node *node, 2456 struct backref_node *node,
2457 struct backref_edge *edges[], int *nr) 2457 struct backref_edge *edges[])
2458{ 2458{
2459 struct backref_node *next; 2459 struct backref_node *next;
2460 struct btrfs_root *root; 2460 struct btrfs_root *root;
@@ -2496,7 +2496,6 @@ struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans,
2496 if (!root) 2496 if (!root)
2497 return NULL; 2497 return NULL;
2498 2498
2499 *nr = index;
2500 next = node; 2499 next = node;
2501 /* setup backref node path for btrfs_reloc_cow_block */ 2500 /* setup backref node path for btrfs_reloc_cow_block */
2502 while (1) { 2501 while (1) {
@@ -2643,7 +2642,6 @@ static int do_relocation(struct btrfs_trans_handle *trans,
2643 u32 blocksize; 2642 u32 blocksize;
2644 u64 bytenr; 2643 u64 bytenr;
2645 u64 generation; 2644 u64 generation;
2646 int nr;
2647 int slot; 2645 int slot;
2648 int ret; 2646 int ret;
2649 int err = 0; 2647 int err = 0;
@@ -2656,7 +2654,7 @@ static int do_relocation(struct btrfs_trans_handle *trans,
2656 cond_resched(); 2654 cond_resched();
2657 2655
2658 upper = edge->node[UPPER]; 2656 upper = edge->node[UPPER];
2659 root = select_reloc_root(trans, rc, upper, edges, &nr); 2657 root = select_reloc_root(trans, rc, upper, edges);
2660 BUG_ON(!root); 2658 BUG_ON(!root);
2661 2659
2662 if (upper->eb && !upper->locked) { 2660 if (upper->eb && !upper->locked) {