• Home
  • Raw
  • Download

Lines Matching refs:dev_replace

2080 	down_read(&fs_info->dev_replace.rwsem);  in btrfs_num_devices()
2081 if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace)) { in btrfs_num_devices()
2085 up_read(&fs_info->dev_replace.rwsem); in btrfs_num_devices()
5424 down_read(&fs_info->dev_replace.rwsem); in btrfs_num_copies()
5425 if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace) && in btrfs_num_copies()
5426 fs_info->dev_replace.tgtdev) in btrfs_num_copies()
5428 up_read(&fs_info->dev_replace.rwsem); in btrfs_num_copies()
5489 fs_info->dev_replace.cont_reading_from_srcdev_mode == in find_live_mirror()
5491 srcdev = fs_info->dev_replace.srcdev; in find_live_mirror()
5815 struct btrfs_dev_replace *dev_replace, in handle_ops_on_dev_replace() argument
5819 u64 srcdev_devid = dev_replace->srcdev->devid; in handle_ops_on_dev_replace()
5850 new->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
5893 tgtdev_stripe->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6031 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in __btrfs_map_block() local
6060 down_read(&dev_replace->rwsem); in __btrfs_map_block()
6061 dev_replace_is_ongoing = btrfs_dev_replace_is_ongoing(dev_replace); in __btrfs_map_block()
6067 up_read(&dev_replace->rwsem); in __btrfs_map_block()
6070 !need_full_stripe(op) && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6072 dev_replace->srcdev->devid, in __btrfs_map_block()
6177 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6190 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) in __btrfs_map_block()
6236 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in __btrfs_map_block()
6238 handle_ops_on_dev_replace(op, &bbio, dev_replace, &num_stripes, in __btrfs_map_block()
6255 bbio->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()
6261 lockdep_assert_held(&dev_replace->rwsem); in __btrfs_map_block()
6263 up_read(&dev_replace->rwsem); in __btrfs_map_block()