• Home
  • Raw
  • Download

Lines Matching refs:dev_replace

2054 	down_read(&fs_info->dev_replace.rwsem);  in btrfs_num_devices()
2055 if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace)) { in btrfs_num_devices()
2059 up_read(&fs_info->dev_replace.rwsem); in btrfs_num_devices()
5811 down_read(&fs_info->dev_replace.rwsem); in btrfs_num_copies()
5812 if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace) && in btrfs_num_copies()
5813 fs_info->dev_replace.tgtdev) in btrfs_num_copies()
5815 up_read(&fs_info->dev_replace.rwsem); in btrfs_num_copies()
5893 fs_info->dev_replace.cont_reading_from_srcdev_mode == in find_live_mirror()
5895 srcdev = fs_info->dev_replace.srcdev; in find_live_mirror()
6222 struct btrfs_dev_replace *dev_replace, in handle_ops_on_dev_replace() argument
6227 u64 srcdev_devid = dev_replace->srcdev->devid; in handle_ops_on_dev_replace()
6240 if (is_block_group_to_copy(dev_replace->srcdev->fs_info, logical)) in handle_ops_on_dev_replace()
6264 new->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6304 tgtdev_stripe->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6438 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in __btrfs_map_block() local
6465 down_read(&dev_replace->rwsem); in __btrfs_map_block()
6466 dev_replace_is_ongoing = btrfs_dev_replace_is_ongoing(dev_replace); in __btrfs_map_block()
6472 up_read(&dev_replace->rwsem); in __btrfs_map_block()
6475 !need_full_stripe(op) && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6477 dev_replace->srcdev->devid, in __btrfs_map_block()
6586 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6602 !dev_replace->tgtdev)) { in __btrfs_map_block()
6604 smap->dev = dev_replace->tgtdev; in __btrfs_map_block()
6657 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in __btrfs_map_block()
6659 handle_ops_on_dev_replace(op, &bioc, dev_replace, logical, in __btrfs_map_block()
6676 bioc->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()
6682 lockdep_assert_held(&dev_replace->rwsem); in __btrfs_map_block()
6684 up_read(&dev_replace->rwsem); in __btrfs_map_block()