btrfs: remove unused parameter from tree_move_next_or_upnext
authorDavid Sterba <dsterba@suse.com>
Fri, 10 Feb 2017 18:25:51 +0000 (19:25 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:52 +0000 (12:03 +0100)
Not needed.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c

index a981c2acd6fa8e90702e767ee5a1ca076ea857fe..1192bc7d2ee782c1c915ba71aa771e57762b7d06 100644 (file)
@@ -5256,8 +5256,7 @@ static int tree_move_down(struct btrfs_fs_info *fs_info,
        return 0;
 }
 
-static int tree_move_next_or_upnext(struct btrfs_fs_info *fs_info,
-                                   struct btrfs_path *path,
+static int tree_move_next_or_upnext(struct btrfs_path *path,
                                    int *level, int root_level)
 {
        int ret = 0;
@@ -5296,8 +5295,7 @@ static int tree_advance(struct btrfs_fs_info *fs_info,
        int ret;
 
        if (*level == 0 || !allow_down) {
-               ret = tree_move_next_or_upnext(fs_info, path, level,
-                                              root_level);
+               ret = tree_move_next_or_upnext(path, level, root_level);
        } else {
                ret = tree_move_down(fs_info, path, level);
        }