From: Filipe Manana Date: Tue, 21 Mar 2023 11:13:37 +0000 (+0000) Subject: btrfs: pass a bool to btrfs_block_rsv_migrate() at evict_refill_and_join() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4e0527deb31191b300380c98fb80757eb591f6f1;p=linux.git btrfs: pass a bool to btrfs_block_rsv_migrate() at evict_refill_and_join() 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 Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 76d93b9e94a92..7bae75973a4dd 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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; }