Lines Matching refs:dev_replace
2033 down_read(&fs_info->dev_replace.rwsem); in btrfs_num_devices()
2034 if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace)) { in btrfs_num_devices()
2038 up_read(&fs_info->dev_replace.rwsem); in btrfs_num_devices()
5855 fs_info->dev_replace.cont_reading_from_srcdev_mode == in find_live_mirror()
5857 srcdev = fs_info->dev_replace.srcdev; in find_live_mirror()
6084 struct btrfs_dev_replace *dev_replace, in handle_ops_on_dev_replace() argument
6088 u64 srcdev_devid = dev_replace->srcdev->devid; in handle_ops_on_dev_replace()
6102 if (is_block_group_to_copy(dev_replace->srcdev->fs_info, logical)) in handle_ops_on_dev_replace()
6123 new->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6274 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_map_block() local
6298 down_read(&dev_replace->rwsem); in btrfs_map_block()
6299 dev_replace_is_ongoing = btrfs_dev_replace_is_ongoing(dev_replace); in btrfs_map_block()
6305 up_read(&dev_replace->rwsem); in btrfs_map_block()
6411 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in btrfs_map_block()
6482 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in btrfs_map_block()
6484 handle_ops_on_dev_replace(op, bioc, dev_replace, logical, in btrfs_map_block()
6495 lockdep_assert_held(&dev_replace->rwsem); in btrfs_map_block()
6497 up_read(&dev_replace->rwsem); in btrfs_map_block()