dev_replace 869 fs/btrfs/ctree.h struct btrfs_dev_replace dev_replace; dev_replace 37 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 59 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 61 fs/btrfs/dev-replace.c dev_replace->cont_reading_from_srcdev_mode = dev_replace 63 fs/btrfs/dev-replace.c dev_replace->time_started = 0; dev_replace 64 fs/btrfs/dev-replace.c dev_replace->time_stopped = 0; dev_replace 65 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_write_errors, 0); dev_replace 66 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_uncorrectable_read_errors, 0); dev_replace 67 fs/btrfs/dev-replace.c dev_replace->cursor_left = 0; dev_replace 68 fs/btrfs/dev-replace.c dev_replace->committed_cursor_left = 0; dev_replace 69 fs/btrfs/dev-replace.c dev_replace->cursor_left_last_write_of_item = 0; dev_replace 70 fs/btrfs/dev-replace.c dev_replace->cursor_right = 0; dev_replace 71 fs/btrfs/dev-replace.c dev_replace->srcdev = NULL; dev_replace 72 fs/btrfs/dev-replace.c dev_replace->tgtdev = NULL; dev_replace 73 fs/btrfs/dev-replace.c dev_replace->is_valid = 0; dev_replace 74 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 0; dev_replace 89 fs/btrfs/dev-replace.c dev_replace->cont_reading_from_srcdev_mode = dev_replace 91 fs/btrfs/dev-replace.c dev_replace->replace_state = btrfs_dev_replace_replace_state(eb, ptr); dev_replace 92 fs/btrfs/dev-replace.c dev_replace->time_started = btrfs_dev_replace_time_started(eb, ptr); dev_replace 93 fs/btrfs/dev-replace.c dev_replace->time_stopped = dev_replace 95 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_write_errors, dev_replace 97 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_uncorrectable_read_errors, dev_replace 99 fs/btrfs/dev-replace.c dev_replace->cursor_left = btrfs_dev_replace_cursor_left(eb, ptr); dev_replace 100 fs/btrfs/dev-replace.c dev_replace->committed_cursor_left = dev_replace->cursor_left; dev_replace 101 fs/btrfs/dev-replace.c dev_replace->cursor_left_last_write_of_item = dev_replace->cursor_left; dev_replace 102 fs/btrfs/dev-replace.c dev_replace->cursor_right = btrfs_dev_replace_cursor_right(eb, ptr); dev_replace 103 fs/btrfs/dev-replace.c dev_replace->is_valid = 1; dev_replace 105 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 0; dev_replace 106 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 110 fs/btrfs/dev-replace.c dev_replace->srcdev = NULL; dev_replace 111 fs/btrfs/dev-replace.c dev_replace->tgtdev = NULL; dev_replace 115 fs/btrfs/dev-replace.c dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, dev_replace 117 fs/btrfs/dev-replace.c dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, dev_replace 124 fs/btrfs/dev-replace.c if (!dev_replace->srcdev && dev_replace 133 fs/btrfs/dev-replace.c if (!dev_replace->tgtdev && dev_replace 142 fs/btrfs/dev-replace.c if (dev_replace->tgtdev) { dev_replace 143 fs/btrfs/dev-replace.c if (dev_replace->srcdev) { dev_replace 144 fs/btrfs/dev-replace.c dev_replace->tgtdev->total_bytes = dev_replace 145 fs/btrfs/dev-replace.c dev_replace->srcdev->total_bytes; dev_replace 146 fs/btrfs/dev-replace.c dev_replace->tgtdev->disk_total_bytes = dev_replace 147 fs/btrfs/dev-replace.c dev_replace->srcdev->disk_total_bytes; dev_replace 148 fs/btrfs/dev-replace.c dev_replace->tgtdev->commit_total_bytes = dev_replace 149 fs/btrfs/dev-replace.c dev_replace->srcdev->commit_total_bytes; dev_replace 150 fs/btrfs/dev-replace.c dev_replace->tgtdev->bytes_used = dev_replace 151 fs/btrfs/dev-replace.c dev_replace->srcdev->bytes_used; dev_replace 152 fs/btrfs/dev-replace.c dev_replace->tgtdev->commit_bytes_used = dev_replace 153 fs/btrfs/dev-replace.c dev_replace->srcdev->commit_bytes_used; dev_replace 156 fs/btrfs/dev-replace.c &dev_replace->tgtdev->dev_state); dev_replace 159 fs/btrfs/dev-replace.c dev_replace->tgtdev->io_width = fs_info->sectorsize; dev_replace 160 fs/btrfs/dev-replace.c dev_replace->tgtdev->io_align = fs_info->sectorsize; dev_replace 161 fs/btrfs/dev-replace.c dev_replace->tgtdev->sector_size = fs_info->sectorsize; dev_replace 162 fs/btrfs/dev-replace.c dev_replace->tgtdev->fs_info = fs_info; dev_replace 164 fs/btrfs/dev-replace.c &dev_replace->tgtdev->dev_state); dev_replace 287 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 289 fs/btrfs/dev-replace.c down_read(&dev_replace->rwsem); dev_replace 290 fs/btrfs/dev-replace.c if (!dev_replace->is_valid || dev_replace 291 fs/btrfs/dev-replace.c !dev_replace->item_needs_writeback) { dev_replace 292 fs/btrfs/dev-replace.c up_read(&dev_replace->rwsem); dev_replace 295 fs/btrfs/dev-replace.c up_read(&dev_replace->rwsem); dev_replace 353 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 354 fs/btrfs/dev-replace.c if (dev_replace->srcdev) dev_replace 356 fs/btrfs/dev-replace.c dev_replace->srcdev->devid); dev_replace 360 fs/btrfs/dev-replace.c dev_replace->cont_reading_from_srcdev_mode); dev_replace 362 fs/btrfs/dev-replace.c dev_replace->replace_state); dev_replace 363 fs/btrfs/dev-replace.c btrfs_set_dev_replace_time_started(eb, ptr, dev_replace->time_started); dev_replace 364 fs/btrfs/dev-replace.c btrfs_set_dev_replace_time_stopped(eb, ptr, dev_replace->time_stopped); dev_replace 366 fs/btrfs/dev-replace.c atomic64_read(&dev_replace->num_write_errors)); dev_replace 368 fs/btrfs/dev-replace.c atomic64_read(&dev_replace->num_uncorrectable_read_errors)); dev_replace 369 fs/btrfs/dev-replace.c dev_replace->cursor_left_last_write_of_item = dev_replace 370 fs/btrfs/dev-replace.c dev_replace->cursor_left; dev_replace 372 fs/btrfs/dev-replace.c dev_replace->cursor_left_last_write_of_item); dev_replace 374 fs/btrfs/dev-replace.c dev_replace->cursor_right); dev_replace 375 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 0; dev_replace 376 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 400 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 435 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 436 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 445 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 449 fs/btrfs/dev-replace.c dev_replace->cont_reading_from_srcdev_mode = read_src; dev_replace 450 fs/btrfs/dev-replace.c dev_replace->srcdev = src_device; dev_replace 451 fs/btrfs/dev-replace.c dev_replace->tgtdev = tgt_device; dev_replace 463 fs/btrfs/dev-replace.c dev_replace->replace_state = BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED; dev_replace 464 fs/btrfs/dev-replace.c dev_replace->time_started = ktime_get_real_seconds(); dev_replace 465 fs/btrfs/dev-replace.c dev_replace->cursor_left = 0; dev_replace 466 fs/btrfs/dev-replace.c dev_replace->committed_cursor_left = 0; dev_replace 467 fs/btrfs/dev-replace.c dev_replace->cursor_left_last_write_of_item = 0; dev_replace 468 fs/btrfs/dev-replace.c dev_replace->cursor_right = 0; dev_replace 469 fs/btrfs/dev-replace.c dev_replace->is_valid = 1; dev_replace 470 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 1; dev_replace 471 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_write_errors, 0); dev_replace 472 fs/btrfs/dev-replace.c atomic64_set(&dev_replace->num_uncorrectable_read_errors, 0); dev_replace 473 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 485 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 486 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 488 fs/btrfs/dev-replace.c dev_replace->srcdev = NULL; dev_replace 489 fs/btrfs/dev-replace.c dev_replace->tgtdev = NULL; dev_replace 490 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 500 fs/btrfs/dev-replace.c &dev_replace->scrub_progress, 0, 1); dev_replace 552 fs/btrfs/dev-replace.c wait_event(fs_info->dev_replace.replace_wait, !percpu_counter_sum( dev_replace 553 fs/btrfs/dev-replace.c &fs_info->dev_replace.bio_counter)); dev_replace 562 fs/btrfs/dev-replace.c wake_up(&fs_info->dev_replace.replace_wait); dev_replace 568 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 577 fs/btrfs/dev-replace.c mutex_lock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 579 fs/btrfs/dev-replace.c down_read(&dev_replace->rwsem); dev_replace 581 fs/btrfs/dev-replace.c if (dev_replace->replace_state != dev_replace 583 fs/btrfs/dev-replace.c up_read(&dev_replace->rwsem); dev_replace 584 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 588 fs/btrfs/dev-replace.c tgt_device = dev_replace->tgtdev; dev_replace 589 fs/btrfs/dev-replace.c src_device = dev_replace->srcdev; dev_replace 590 fs/btrfs/dev-replace.c up_read(&dev_replace->rwsem); dev_replace 598 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 611 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 630 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 631 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 634 fs/btrfs/dev-replace.c dev_replace->tgtdev = NULL; dev_replace 635 fs/btrfs/dev-replace.c dev_replace->srcdev = NULL; dev_replace 636 fs/btrfs/dev-replace.c dev_replace->time_stopped = ktime_get_real_seconds(); dev_replace 637 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 1; dev_replace 651 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 658 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 685 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 717 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 755 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 758 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 768 fs/btrfs/dev-replace.c ret = div64_u64(dev_replace->cursor_left, dev_replace 770 fs/btrfs/dev-replace.c dev_replace->srcdev), 1000)); dev_replace 780 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 782 fs/btrfs/dev-replace.c down_read(&dev_replace->rwsem); dev_replace 786 fs/btrfs/dev-replace.c args->status.replace_state = dev_replace->replace_state; dev_replace 787 fs/btrfs/dev-replace.c args->status.time_started = dev_replace->time_started; dev_replace 788 fs/btrfs/dev-replace.c args->status.time_stopped = dev_replace->time_stopped; dev_replace 790 fs/btrfs/dev-replace.c atomic64_read(&dev_replace->num_write_errors); dev_replace 792 fs/btrfs/dev-replace.c atomic64_read(&dev_replace->num_uncorrectable_read_errors); dev_replace 794 fs/btrfs/dev-replace.c up_read(&dev_replace->rwsem); dev_replace 799 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 810 fs/btrfs/dev-replace.c mutex_lock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 811 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 812 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 817 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 820 fs/btrfs/dev-replace.c tgt_device = dev_replace->tgtdev; dev_replace 821 fs/btrfs/dev-replace.c src_device = dev_replace->srcdev; dev_replace 822 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 844 fs/btrfs/dev-replace.c tgt_device = dev_replace->tgtdev; dev_replace 845 fs/btrfs/dev-replace.c src_device = dev_replace->srcdev; dev_replace 846 fs/btrfs/dev-replace.c dev_replace->tgtdev = NULL; dev_replace 847 fs/btrfs/dev-replace.c dev_replace->srcdev = NULL; dev_replace 848 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 850 fs/btrfs/dev-replace.c dev_replace->time_stopped = ktime_get_real_seconds(); dev_replace 851 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 1; dev_replace 853 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 861 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 876 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 880 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 886 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 888 fs/btrfs/dev-replace.c mutex_lock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 889 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 891 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 898 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 900 fs/btrfs/dev-replace.c dev_replace->time_stopped = ktime_get_real_seconds(); dev_replace 901 fs/btrfs/dev-replace.c dev_replace->item_needs_writeback = 1; dev_replace 906 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 907 fs/btrfs/dev-replace.c mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); dev_replace 914 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 916 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 918 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 922 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 927 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 931 fs/btrfs/dev-replace.c if (!dev_replace->tgtdev || !dev_replace->tgtdev->bdev) { dev_replace 936 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 938 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 941 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 949 fs/btrfs/dev-replace.c down_write(&dev_replace->rwsem); dev_replace 950 fs/btrfs/dev-replace.c dev_replace->replace_state = dev_replace 952 fs/btrfs/dev-replace.c up_write(&dev_replace->rwsem); dev_replace 965 fs/btrfs/dev-replace.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 973 fs/btrfs/dev-replace.c btrfs_dev_name(dev_replace->srcdev), dev_replace 974 fs/btrfs/dev-replace.c dev_replace->srcdev->devid, dev_replace 975 fs/btrfs/dev-replace.c btrfs_dev_name(dev_replace->tgtdev), dev_replace 978 fs/btrfs/dev-replace.c ret = btrfs_scrub_dev(fs_info, dev_replace->srcdev->devid, dev_replace 979 fs/btrfs/dev-replace.c dev_replace->committed_cursor_left, dev_replace 980 fs/btrfs/dev-replace.c btrfs_device_get_total_bytes(dev_replace->srcdev), dev_replace 981 fs/btrfs/dev-replace.c &dev_replace->scrub_progress, 0, 1); dev_replace 989 fs/btrfs/dev-replace.c int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace) dev_replace 991 fs/btrfs/dev-replace.c if (!dev_replace->is_valid) dev_replace 994 fs/btrfs/dev-replace.c switch (dev_replace->replace_state) { dev_replace 1018 fs/btrfs/dev-replace.c percpu_counter_inc(&fs_info->dev_replace.bio_counter); dev_replace 1023 fs/btrfs/dev-replace.c percpu_counter_sub(&fs_info->dev_replace.bio_counter, amount); dev_replace 1024 fs/btrfs/dev-replace.c cond_wake_up_nomb(&fs_info->dev_replace.replace_wait); dev_replace 1030 fs/btrfs/dev-replace.c percpu_counter_inc(&fs_info->dev_replace.bio_counter); dev_replace 1036 fs/btrfs/dev-replace.c wait_event(fs_info->dev_replace.replace_wait, dev_replace 20 fs/btrfs/dev-replace.h int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace); dev_replace 2120 fs/btrfs/disk-io.c mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount); dev_replace 2121 fs/btrfs/disk-io.c init_rwsem(&fs_info->dev_replace.rwsem); dev_replace 2122 fs/btrfs/disk-io.c init_waitqueue_head(&fs_info->dev_replace.replace_wait); dev_replace 2636 fs/btrfs/disk-io.c ret = percpu_counter_init(&fs_info->dev_replace.bio_counter, 0, dev_replace 3352 fs/btrfs/disk-io.c percpu_counter_destroy(&fs_info->dev_replace.bio_counter); dev_replace 4099 fs/btrfs/disk-io.c percpu_counter_destroy(&fs_info->dev_replace.bio_counter); dev_replace 381 fs/btrfs/reada.c down_read(&fs_info->dev_replace.rwsem); dev_replace 384 fs/btrfs/reada.c up_read(&fs_info->dev_replace.rwsem); dev_replace 395 fs/btrfs/reada.c up_read(&fs_info->dev_replace.rwsem); dev_replace 401 fs/btrfs/reada.c up_read(&fs_info->dev_replace.rwsem); dev_replace 407 fs/btrfs/reada.c &fs_info->dev_replace); dev_replace 425 fs/btrfs/reada.c dev == fs_info->dev_replace.tgtdev) { dev_replace 443 fs/btrfs/reada.c up_read(&fs_info->dev_replace.rwsem); dev_replace 449 fs/btrfs/reada.c up_read(&fs_info->dev_replace.rwsem); dev_replace 623 fs/btrfs/scrub.c WARN_ON(!fs_info->dev_replace.tgtdev); dev_replace 625 fs/btrfs/scrub.c sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; dev_replace 1143 fs/btrfs/scrub.c &fs_info->dev_replace.num_write_errors); dev_replace 1583 fs/btrfs/scrub.c atomic64_inc(&fs_info->dev_replace.num_write_errors); dev_replace 1610 fs/btrfs/scrub.c atomic64_inc(&fs_info->dev_replace.num_write_errors); dev_replace 1735 fs/btrfs/scrub.c struct btrfs_dev_replace *dev_replace = dev_replace 1736 fs/btrfs/scrub.c &sbio->sctx->fs_info->dev_replace; dev_replace 1742 fs/btrfs/scrub.c atomic64_inc(&dev_replace->num_write_errors); dev_replace 3485 fs/btrfs/scrub.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 3623 fs/btrfs/scrub.c down_write(&fs_info->dev_replace.rwsem); dev_replace 3624 fs/btrfs/scrub.c dev_replace->cursor_right = found_key.offset + length; dev_replace 3625 fs/btrfs/scrub.c dev_replace->cursor_left = found_key.offset; dev_replace 3626 fs/btrfs/scrub.c dev_replace->item_needs_writeback = 1; dev_replace 3627 fs/btrfs/scrub.c up_write(&dev_replace->rwsem); dev_replace 3664 fs/btrfs/scrub.c down_write(&fs_info->dev_replace.rwsem); dev_replace 3665 fs/btrfs/scrub.c dev_replace->cursor_left = dev_replace->cursor_right; dev_replace 3666 fs/btrfs/scrub.c dev_replace->item_needs_writeback = 1; dev_replace 3667 fs/btrfs/scrub.c up_write(&fs_info->dev_replace.rwsem); dev_replace 3692 fs/btrfs/scrub.c atomic64_read(&dev_replace->num_write_errors) > 0) { dev_replace 3875 fs/btrfs/scrub.c down_read(&fs_info->dev_replace.rwsem); dev_replace 3878 fs/btrfs/scrub.c btrfs_dev_replace_is_ongoing(&fs_info->dev_replace))) { dev_replace 3879 fs/btrfs/scrub.c up_read(&fs_info->dev_replace.rwsem); dev_replace 3885 fs/btrfs/scrub.c up_read(&fs_info->dev_replace.rwsem); dev_replace 1196 fs/btrfs/transaction.c fs_info->dev_replace.committed_cursor_left = dev_replace 1197 fs/btrfs/transaction.c fs_info->dev_replace.cursor_left_last_write_of_item; dev_replace 2125 fs/btrfs/volumes.c down_read(&fs_info->dev_replace.rwsem); dev_replace 2126 fs/btrfs/volumes.c if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace)) { dev_replace 2130 fs/btrfs/volumes.c up_read(&fs_info->dev_replace.rwsem); dev_replace 5469 fs/btrfs/volumes.c down_read(&fs_info->dev_replace.rwsem); dev_replace 5470 fs/btrfs/volumes.c if (btrfs_dev_replace_is_ongoing(&fs_info->dev_replace) && dev_replace 5471 fs/btrfs/volumes.c fs_info->dev_replace.tgtdev) dev_replace 5473 fs/btrfs/volumes.c up_read(&fs_info->dev_replace.rwsem); dev_replace 5534 fs/btrfs/volumes.c fs_info->dev_replace.cont_reading_from_srcdev_mode == dev_replace 5536 fs/btrfs/volumes.c srcdev = fs_info->dev_replace.srcdev; dev_replace 5860 fs/btrfs/volumes.c struct btrfs_dev_replace *dev_replace, dev_replace 5864 fs/btrfs/volumes.c u64 srcdev_devid = dev_replace->srcdev->devid; dev_replace 5895 fs/btrfs/volumes.c new->dev = dev_replace->tgtdev; dev_replace 5938 fs/btrfs/volumes.c tgtdev_stripe->dev = dev_replace->tgtdev; dev_replace 6076 fs/btrfs/volumes.c struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; dev_replace 6105 fs/btrfs/volumes.c down_read(&dev_replace->rwsem); dev_replace 6106 fs/btrfs/volumes.c dev_replace_is_ongoing = btrfs_dev_replace_is_ongoing(dev_replace); dev_replace 6112 fs/btrfs/volumes.c up_read(&dev_replace->rwsem); dev_replace 6115 fs/btrfs/volumes.c !need_full_stripe(op) && dev_replace->tgtdev != NULL) { dev_replace 6117 fs/btrfs/volumes.c dev_replace->srcdev->devid, dev_replace 6222 fs/btrfs/volumes.c if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) { dev_replace 6235 fs/btrfs/volumes.c if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) dev_replace 6281 fs/btrfs/volumes.c if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && dev_replace 6283 fs/btrfs/volumes.c handle_ops_on_dev_replace(op, &bbio, dev_replace, &num_stripes, dev_replace 6300 fs/btrfs/volumes.c bbio->stripes[0].dev = dev_replace->tgtdev; dev_replace 6306 fs/btrfs/volumes.c lockdep_assert_held(&dev_replace->rwsem); dev_replace 6308 fs/btrfs/volumes.c up_read(&dev_replace->rwsem);