btrfs: pass a bool to btrfs_block_rsv_migrate() at evict_refill_and_join()
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Mar 2023 11:13:37 +0000 (11:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:18 +0000 (18:01 +0200)
The last argument of btrfs_block_rsv_migrate() is a boolean, but we are
passing an integer, with a value of 1, to it at evict_refill_and_join().
While this is not a bug, due to type conversion, it's a lot more clear to
simply pass the boolean true value instead. So just do that.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c

index 76d93b9e94a92914ceb646771cea15a91577f383..7bae75973a4dd33426e265c1e78a8dd5073598eb 100644 (file)
@@ -5268,7 +5268,7 @@ static struct btrfs_trans_handle *evict_refill_and_join(struct btrfs_root *root,
                trans->block_rsv = &fs_info->trans_block_rsv;
                trans->bytes_reserved = delayed_refs_extra;
                btrfs_block_rsv_migrate(rsv, trans->block_rsv,
-                                       delayed_refs_extra, 1);
+                                       delayed_refs_extra, true);
        }
        return trans;
 }