Home
last modified time | relevance | path

Searched refs:dev_replace (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/fs/btrfs/
Ddev-replace.c78 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_init_dev_replace() local
113 dev_replace->replace_state = in btrfs_init_dev_replace()
115 dev_replace->cont_reading_from_srcdev_mode = in btrfs_init_dev_replace()
117 dev_replace->time_started = 0; in btrfs_init_dev_replace()
118 dev_replace->time_stopped = 0; in btrfs_init_dev_replace()
119 atomic64_set(&dev_replace->num_write_errors, 0); in btrfs_init_dev_replace()
120 atomic64_set(&dev_replace->num_uncorrectable_read_errors, 0); in btrfs_init_dev_replace()
121 dev_replace->cursor_left = 0; in btrfs_init_dev_replace()
122 dev_replace->committed_cursor_left = 0; in btrfs_init_dev_replace()
123 dev_replace->cursor_left_last_write_of_item = 0; in btrfs_init_dev_replace()
[all …]
Dscrub.c378 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()
379 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
994 unsigned long write_bitmap, bool dev_replace);
1155 struct btrfs_bio *bbio, bool dev_replace) in scrub_submit_write_bio() argument
1164 btrfs_submit_repair_write(bbio, stripe->mirror_num, dev_replace); in scrub_submit_write_bio()
1196 unsigned long write_bitmap, bool dev_replace) in scrub_write_sectors() argument
1212 scrub_submit_write_bio(sctx, stripe, bbio, dev_replace); in scrub_write_sectors()
1226 scrub_submit_write_bio(sctx, stripe, bbio, dev_replace); in scrub_write_sectors()
1683 (fs_info->dev_replace.cont_reading_from_srcdev_mode == in scrub_submit_initial_read()
1777 ASSERT(stripe->dev == fs_info->dev_replace.srcdev); in flush_scrub_stripes()
[all …]
Ddev-replace.h24 int __pure btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
Dbio.h106 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace);
Dbio.c809 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace) in btrfs_submit_repair_write() argument
827 if (dev_replace) { in btrfs_submit_repair_write()
828 ASSERT(smap.dev == fs_info->dev_replace.srcdev); in btrfs_submit_repair_write()
829 smap.dev = fs_info->dev_replace.tgtdev; in btrfs_submit_repair_write()
Dzoned.c1358 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_load_block_group_zone_info() local
1393 down_read(&dev_replace->rwsem); in btrfs_load_block_group_zone_info()
1394 dev_replace_is_ongoing = btrfs_dev_replace_is_ongoing(dev_replace); in btrfs_load_block_group_zone_info()
1395 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) in btrfs_load_block_group_zone_info()
1396 btrfs_dev_clear_zone_empty(dev_replace->tgtdev, physical[i]); in btrfs_load_block_group_zone_info()
1397 up_read(&dev_replace->rwsem); in btrfs_load_block_group_zone_info()
Dvolumes.c2033 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
[all …]
Dfs.h707 struct btrfs_dev_replace dev_replace; member
Ddisk-io.c1247 percpu_counter_destroy(&fs_info->dev_replace.bio_counter); in btrfs_free_fs_info()
1928 mutex_init(&fs_info->dev_replace.lock_finishing_cancel_unmount); in btrfs_init_dev_replace_locks()
1929 init_rwsem(&fs_info->dev_replace.rwsem); in btrfs_init_dev_replace_locks()
1930 init_waitqueue_head(&fs_info->dev_replace.replace_wait); in btrfs_init_dev_replace_locks()
2821 ret = percpu_counter_init(&fs_info->dev_replace.bio_counter, 0, in init_mount_fs_info()
Dtransaction.c1359 fs_info->dev_replace.committed_cursor_left = in commit_cowonly_roots()
1360 fs_info->dev_replace.cursor_left_last_write_of_item; in commit_cowonly_roots()
Dextent-tree.c1320 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in do_discard_extent() local
1334 if (!btrfs_dev_replace_is_ongoing(dev_replace) || in do_discard_extent()
1335 dev != dev_replace->srcdev) in do_discard_extent()
1341 ret = btrfs_reset_device_zone(dev_replace->tgtdev, phys, len, in do_discard_extent()