| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | vdev.c | 1086 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer() 1099 if (tvd->vdev_mg) in vdev_top_transfer() 1108 tvd->vdev_mg->mg_vd = tvd; in vdev_top_transfer() 1188 vd->vdev_top = tvd; in vdev_top_update() 3609 vdev_t *vd, *tvd; in vdev_fault() local 3619 tvd = vd->vdev_top; in vdev_fault() 3674 vdev_reopen(tvd); in vdev_fault() 3755 vdev_reopen(tvd); in vdev_online() 3814 vdev_t *vd, *tvd; in vdev_offline_locked() local 3832 mg = tvd->vdev_mg; in vdev_offline_locked() [all …]
|
| H A D | vdev_trim.c | 178 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument 181 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop() 1453 vdev_t *tvd = root_vd->vdev_child[i]; in vdev_autotrim() local 1456 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim() 1458 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim() 1465 mutex_exit(&tvd->vdev_autotrim_lock); in vdev_autotrim() 1474 vdev_autotrim_stop_wait(vdev_t *tvd) in vdev_autotrim_stop_wait() argument 1476 mutex_enter(&tvd->vdev_autotrim_lock); in vdev_autotrim_stop_wait() 1481 cv_wait(&tvd->vdev_autotrim_cv, in vdev_autotrim_stop_wait() 1482 &tvd->vdev_autotrim_lock); in vdev_autotrim_stop_wait() [all …]
|
| H A D | spa_config.c | 567 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update() local 576 if (!vdev_is_concrete(tvd) || in spa_config_update() 577 (tvd->vdev_islog && tvd->vdev_removing)) in spa_config_update() 580 if (tvd->vdev_ms_array == 0) in spa_config_update() 581 vdev_metaslab_set_size(tvd); in spa_config_update() 582 vdev_expand(tvd, txg); in spa_config_update()
|
| H A D | vdev_rebuild.c | 1097 vdev_rebuild_get_stats(vdev_t *tvd, vdev_rebuild_stat_t *vrs) in vdev_rebuild_get_stats() argument 1099 spa_t *spa = tvd->vdev_spa; in vdev_rebuild_get_stats() 1104 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats() 1108 tvd->vdev_top_zap, VDEV_TOP_ZAP_VDEV_REBUILD_PHYS); in vdev_rebuild_get_stats() 1115 vdev_rebuild_t *vr = &tvd->vdev_rebuild_config; in vdev_rebuild_get_stats() 1118 mutex_enter(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats() 1132 mutex_exit(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
|
| H A D | spa.c | 1681 vdev_t *vd, *tvd; in spa_load_spares() local 1748 spa_spare_add(tvd); in spa_load_spares() 2118 if (tvd->vdev_islog) { in spa_passivate_log() 2138 if (tvd->vdev_islog) in spa_activate_log() 6436 vdev_t *vd, *tvd; local 6681 tvd = pvd; 6683 tvd = pvd->vdev_top; 6787 tvd = newvd->vdev_top; 6825 vdev_rebuild(tvd); 7047 tvd = cvd->vdev_top; [all …]
|
| H A D | dsl_scan.c | 1262 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local 1265 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 1266 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear() 1272 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 4204 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer() 4209 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer() 4210 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer() 4212 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer() 4222 vdev_t *tvd = rvd->vdev_child[i]; in scan_io_queues_destroy() local 4225 if (tvd->vdev_scan_io_queue != NULL) in scan_io_queues_destroy() [all …]
|
| H A D | vdev_draid.c | 2563 vdev_t *tvd = vds->vds_draid_vdev; in vdev_draid_spare_get_child() local 2564 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_get_child() 2566 ASSERT3P(tvd->vdev_ops, ==, &vdev_draid_ops); in vdev_draid_spare_get_child() 2576 (tvd->vdev_children - 1) - vds->vds_spare_id); in vdev_draid_spare_get_child() 2577 vdev_t *cvd = tvd->vdev_child[cid]; in vdev_draid_spare_get_child() 2605 vdev_t *tvd = vdev_lookup_by_guid(rvd, vds->vds_top_guid); in vdev_draid_spare_open() local 2606 if (tvd == NULL) { in vdev_draid_spare_open() 2623 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_open() 2624 if (tvd->vdev_ops != &vdev_draid_ops || vdc == NULL) in vdev_draid_spare_open() 2636 vdev_draid_calculate_asize(tvd, &asize, &max_asize, in vdev_draid_spare_open() [all …]
|
| H A D | metaslab.c | 526 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local 527 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_histogram_verify() 533 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify() 564 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local 565 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation() 571 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation() 613 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local 614 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space() 616 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space() 626 space += P2ALIGN(tvd->vdev_max_asize - tvd->vdev_asize, in metaslab_class_expandable_space() [all …]
|
| H A D | vdev_raidz.c | 1696 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() local 1718 rc->rc_size + (1 << tvd->vdev_ashift)); in vdev_raidz_io_verify() 1831 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local 1835 rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, in vdev_raidz_io_start() 1849 vdev_raidz_io_start_write(zio, rr, tvd->vdev_ashift); in vdev_raidz_io_start()
|
| H A D | vdev_label.c | 726 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local 728 if (tvd->vdev_ishole) { in vdev_top_config_generate()
|
| H A D | zio.c | 3001 vdev_t *tvd = vdev_lookup_top(zio->io_spa, in zio_nop_write() local 3003 if (tvd->vdev_ops == &vdev_indirect_ops) { in zio_nop_write()
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_hpts.h | 258 struct timeval tvd; in tcp_get_usecs() local 261 tv = &tvd; in tcp_get_usecs()
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | dsl_scan.h | 188 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
|
| /f-stack/freebsd/contrib/openzfs/cmd/ztest/ |
| H A D | ztest.c | 1335 vdev_t *tvd; in ztest_random_vdev_top() local 1341 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top() 1342 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top() 1343 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top() 3395 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local 3399 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool() 3795 vdev_t *tvd = vd->vdev_top; in online_vdev() local 3879 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local 3906 mg = tvd->vdev_mg; in ztest_vdev_LUN_growth() 3908 old_ms_count = tvd->vdev_ms_count; in ztest_vdev_LUN_growth() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 1707 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local 1708 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups() 1718 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups() 1719 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()
|