btrfs: change full_search to bool in find_free_extent_update_loop
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 25 Feb 2020 03:56:06 +0000 (12:56 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:47 +0000 (17:01 +0100)
While the "full_search" variable defined in find_free_extent() is bool,
but the full_search argument of find_free_extent_update_loop() is
defined as int. Let's trivially fix the argument type.

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>
fs/btrfs/extent-tree.c

index 1612741..9d5563a 100644 (file)
@@ -3661,7 +3661,7 @@ 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,
-                                       int full_search, bool use_cluster)
+                                       bool full_search, bool use_cluster)
 {
        struct btrfs_root *root = fs_info->extent_root;
        int ret;