summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2020-02-25 04:56:23 +0100
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:51 +0100
commit15b7ee6584c66f21f0a9aa7f7a6f3bfda5c5ad34 (patch)
tree9c048451d4cced9fd758794a4ae0cdb9e9c8bd0c /fs/btrfs/extent-tree.c
parentbtrfs: factor out found_extent() for extent allocation (diff)
downloadlinux-15b7ee6584c66f21f0a9aa7f7a6f3bfda5c5ad34.tar.xz
linux-15b7ee6584c66f21f0a9aa7f7a6f3bfda5c5ad34.zip
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: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index dfa88a795c3f..054fc6c7be84 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -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.
*/
static int find_free_extent_update_loop(struct btrfs_fs_info *fs_info,
- struct btrfs_free_cluster *last_ptr,
struct btrfs_key *ins,
struct find_free_extent_ctl *ffe_ctl,
- bool full_search, bool use_cluster)
+ bool full_search)
{
struct btrfs_root *root = fs_info->extent_root;
int ret;
@@ -4112,9 +4111,7 @@ loop:
}
up_read(&space_info->groups_sem);
- ret = find_free_extent_update_loop(fs_info, ffe_ctl.last_ptr, ins,
- &ffe_ctl, full_search,
- ffe_ctl.use_cluster);
+ ret = find_free_extent_update_loop(fs_info, ins, &ffe_ctl, full_search);
if (ret > 0)
goto search;