Skip to content

Commit f24d255

Browse files
committed
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 <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent f963e01 commit f24d255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/volumes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5959,7 +5959,7 @@ static int btrfs_read_rr(const struct btrfs_chunk_map *map, int first, int num_s
59595959

59605960
static int find_live_mirror(struct btrfs_fs_info *fs_info,
59615961
struct btrfs_chunk_map *map, int first,
5962-
int dev_replace_is_ongoing)
5962+
bool dev_replace_is_ongoing)
59635963
{
59645964
const enum btrfs_read_policy policy = READ_ONCE(fs_info->fs_devices->read_policy);
59655965
int i;
@@ -6567,7 +6567,7 @@ int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
65676567
int num_copies;
65686568
struct btrfs_io_context *bioc = NULL;
65696569
struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace;
6570-
int dev_replace_is_ongoing = 0;
6570+
bool dev_replace_is_ongoing = false;
65716571
u16 num_alloc_stripes;
65726572
u64 max_len;
65736573

0 commit comments

Comments
 (0)