Commit 15b7ee65 authored by Naohiro Aota's avatar Naohiro Aota Committed by David Sterba

btrfs: drop unnecessary arguments from find_free_extent_update_loop()

Now that, we don't use last_ptr and use_cluster in the function. Drop
these arguments from it.
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarNaohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 0ab9724b
...@@ -3741,10 +3741,9 @@ static void found_extent(struct find_free_extent_ctl *ffe_ctl, ...@@ -3741,10 +3741,9 @@ static void found_extent(struct find_free_extent_ctl *ffe_ctl,
* Return <0 means we failed to locate any free extent. * Return <0 means we failed to locate any free extent.
*/ */
static int find_free_extent_update_loop(struct btrfs_fs_info *fs_info, static int find_free_extent_update_loop(struct btrfs_fs_info *fs_info,
struct btrfs_free_cluster *last_ptr,
struct btrfs_key *ins, struct btrfs_key *ins,
struct find_free_extent_ctl *ffe_ctl, struct find_free_extent_ctl *ffe_ctl,
bool full_search, bool use_cluster) bool full_search)
{ {
struct btrfs_root *root = fs_info->extent_root; struct btrfs_root *root = fs_info->extent_root;
int ret; int ret;
...@@ -4112,9 +4111,7 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info, ...@@ -4112,9 +4111,7 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info,
} }
up_read(&space_info->groups_sem); up_read(&space_info->groups_sem);
ret = find_free_extent_update_loop(fs_info, ffe_ctl.last_ptr, ins, ret = find_free_extent_update_loop(fs_info, ins, &ffe_ctl, full_search);
&ffe_ctl, full_search,
ffe_ctl.use_cluster);
if (ret > 0) if (ret > 0)
goto search; goto search;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment