From: David Sterba Date: Wed, 23 Apr 2025 16:53:58 +0000 (+0200) Subject: btrfs: switch int dev_replace_is_ongoing variables/parameters to bool X-Git-Tag: v6.16-rc1~214^2~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f24d25544f4fa03cf8df0f59389e1afa355e2826;p=thirdparty%2Fkernel%2Flinux.git btrfs: switch int dev_replace_is_ongoing variables/parameters to bool Both the variable and the parameter are used as logical indicators so convert them to bool. Reviewed-by: Naohiro Aota Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index d0f8b7bd60ac2..85fa73b32eb04 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -5959,7 +5959,7 @@ static int btrfs_read_rr(const struct btrfs_chunk_map *map, int first, int num_s static int find_live_mirror(struct btrfs_fs_info *fs_info, struct btrfs_chunk_map *map, int first, - int dev_replace_is_ongoing) + bool dev_replace_is_ongoing) { const enum btrfs_read_policy policy = READ_ONCE(fs_info->fs_devices->read_policy); int i; @@ -6567,7 +6567,7 @@ int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, int num_copies; struct btrfs_io_context *bioc = NULL; struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; - int dev_replace_is_ongoing = 0; + bool dev_replace_is_ongoing = false; u16 num_alloc_stripes; u64 max_len;