| /illumos-gate/usr/src/uts/common/fs/zfs/ |
| H A D | vdev_trim.c | 179 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument 181 return (tvd->vdev_autotrim_exit_wanted || in vdev_autotrim_should_stop() 182 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop() 183 spa_get_autotrim(tvd->vdev_spa) == SPA_AUTOTRIM_OFF); in vdev_autotrim_should_stop() 1395 vdev_t *tvd = root_vd->vdev_child[i]; in vdev_autotrim() local 1397 mutex_enter(&tvd->vdev_autotrim_lock); in vdev_autotrim() 1398 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim() 1399 tvd->vdev_autotrim_thread == NULL) { in vdev_autotrim() 1400 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim() 1402 tvd->vdev_autotrim_thread = thread_create(NULL, 0, in vdev_autotrim() [all …]
|
| H A D | vdev.c | 972 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument 979 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer() 981 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer() 982 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer() 983 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer() 984 tvd->vdev_top_zap = svd->vdev_top_zap; in vdev_top_transfer() 991 if (tvd->vdev_mg) in vdev_top_transfer() 992 ASSERT3P(tvd->vdev_mg, ==, svd->vdev_mg); in vdev_top_transfer() 993 tvd->vdev_mg = svd->vdev_mg; in vdev_top_transfer() 994 tvd->vdev_ms = svd->vdev_ms; in vdev_top_transfer() [all …]
|
| H A D | spa_config.c | 539 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update() local 548 if (!vdev_is_concrete(tvd) || in spa_config_update() 549 (tvd->vdev_islog && tvd->vdev_removing)) in spa_config_update() 552 if (tvd->vdev_ms_array == 0) in spa_config_update() 553 vdev_metaslab_set_size(tvd); in spa_config_update() 554 vdev_expand(tvd, txg); in spa_config_update()
|
| H A D | spa.c | 1592 vdev_t *vd, *tvd; in spa_load_spares() local 1615 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 1616 B_FALSE)) != NULL && tvd->vdev_isspare) in spa_load_spares() 1617 spa_spare_remove(tvd); in spa_load_spares() 1656 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 1658 if (!tvd->vdev_isspare) in spa_load_spares() 1659 spa_spare_add(tvd); in spa_load_spares() 1674 if (!vdev_is_dead(tvd)) in spa_load_spares() 1675 spa_spare_activate(tvd); in spa_load_spares() 1940 vdev_t *tvd = rvd->vdev_child[c]; in spa_check_for_missing_logs() local [all …]
|
| H A D | dsl_scan.c | 1238 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local 1241 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 1242 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear() 1251 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 4091 dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd) in dsl_scan_io_queue_vdev_xfer() argument 4094 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer() 4096 VERIFY3P(tvd->vdev_scan_io_queue, ==, NULL); in dsl_scan_io_queue_vdev_xfer() 4097 tvd->vdev_scan_io_queue = svd->vdev_scan_io_queue; in dsl_scan_io_queue_vdev_xfer() 4099 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer() 4100 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer() [all …]
|
| H A D | metaslab.c | 488 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local 489 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_histogram_verify() 495 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify() 526 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local 527 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation() 533 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation() 576 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local 577 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space() 579 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space() 590 tspace = tvd->vdev_max_asize - tvd->vdev_asize; in metaslab_class_expandable_space() [all …]
|
| H A D | vdev_raidz.c | 1683 vdev_t *tvd = vd->vdev_top; in vdev_raidz_dumpio() local 1719 rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, vd->vdev_children, in vdev_raidz_dumpio() 1801 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() local 1822 rc->rc_size + (1 << tvd->vdev_ashift)); in vdev_raidz_io_verify() 1850 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local 1856 rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, vd->vdev_children, in vdev_raidz_io_start() 1894 1 << tvd->vdev_ashift, in vdev_raidz_io_start()
|
| H A D | vdev_label.c | 721 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local 723 if (tvd->vdev_ishole) { in vdev_top_config_generate()
|
| /illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
| H A D | dsl_scan.h | 184 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
|
| /illumos-gate/usr/src/cmd/ztest/ |
| H A D | ztest.c | 1147 vdev_t *tvd; in ztest_random_vdev_top() local 1153 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top() 1154 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top() 1155 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top() 3149 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local 3153 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool() 3506 vdev_t *tvd = vd->vdev_top; in online_vdev() local 3546 (u_longlong_t)tvd->vdev_state, in online_vdev() 3588 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local 3614 tvd = spa->spa_root_vdev->vdev_child[top]; in ztest_vdev_LUN_growth() [all …]
|
| /illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
| H A D | zfssubr.c | 1560 vdev_t *tvd = vd->v_top; in vdev_raidz_read() local 1577 rm = vdev_raidz_map_alloc(data, offset, bytes, tvd->v_ashift, in vdev_raidz_read()
|
| /illumos-gate/usr/src/cmd/zdb/ |
| H A D | zdb.c | 1006 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local 1007 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups() 1017 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups() 1018 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()
|