Skip to content

Commit

Permalink
btrfs: remove unused parameter from adjust_slots_upwards
Browse files Browse the repository at this point in the history
Never used.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
David Sterba committed Feb 17, 2017
1 parent 0e8d931 commit 15b3451
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/btrfs/qgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,8 +1589,7 @@ int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans,
* If we increment the root nodes slot counter past the number of
* elements, 1 is returned to signal completion of the search.
*/
static int adjust_slots_upwards(struct btrfs_root *root,
struct btrfs_path *path, int root_level)
static int adjust_slots_upwards(struct btrfs_path *path, int root_level)
{
int level = 0;
int nr, slot;
Expand Down Expand Up @@ -1731,7 +1730,7 @@ int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans,
goto out;

/* Nonzero return here means we completed our search */
ret = adjust_slots_upwards(root, path, root_level);
ret = adjust_slots_upwards(path, root_level);
if (ret)
break;

Expand Down

0 comments on commit 15b3451

Please sign in to comment.