| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev_initialize.c | 51 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_initialize_should_stop() 394 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress() 395 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress() 400 vdev_get_ndisks(vd->vdev_top); in vdev_initialize_calculate_progress() 544 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread() 545 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread() 552 if (vd->vdev_top->vdev_ms_count != ms_count) { in vdev_initialize_thread() 554 ms_count = vd->vdev_top->vdev_ms_count; in vdev_initialize_thread() 633 ASSERT(!vd->vdev_top->vdev_removing); in vdev_initialize() 653 ASSERT(!vd->vdev_top->vdev_removing); in vdev_uninitialize() [all …]
|
| H A D | vdev.c | 349 if (vd == vd->vdev_top) in vdev_get_min_asize() 521 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child() 1306 vd->vdev_top = tvd; in vdev_top_update() 1341 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent() 1343 if (mvd == mvd->vdev_top) in vdev_add_parent() 1395 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent() 1397 if (cvd == cvd->vdev_top) in vdev_remove_parent() 4065 tvd = vd->vdev_top; in vdev_fault() 4217 tvd = vd->vdev_top; in vdev_online() 4318 tvd = vd->vdev_top; in vdev_offline_locked() [all …]
|
| H A D | vdev_trim.c | 549 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range() 684 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress() 689 vdev_get_ndisks(vd->vdev_top); in vdev_trim_calculate_progress() 916 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread() 917 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread() 925 ms_count = vd->vdev_top->vdev_ms_count; in vdev_trim_thread() 1008 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim() 1216 ASSERT3P(vd->vdev_top, ==, vd); in vdev_autotrim_thread() 1497 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim() 1696 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim_l2arc() [all …]
|
| H A D | vdev_rebuild.c | 283 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate() 724 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load() 774 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread() 1015 ASSERT(vd->vdev_top == vd); in vdev_rebuild() 1095 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait() 1131 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
|
| H A D | vdev_mirror.c | 500 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_readable() 511 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_missing()
|
| H A D | vdev_draid.c | 651 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 698 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 788 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 855 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty() 903 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 961 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 2104 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate() 2545 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare()
|
| H A D | spa_config.c | 478 vd->vdev_top->vdev_guid); in spa_config_generate() 487 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
|
| H A D | spa_misc.c | 1218 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter() 1376 vdev_t *vdev_top; in spa_vdev_state_exit() local 1379 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit() 1381 vdev_top = vd->vdev_top; in spa_vdev_state_exit() 1385 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit() 1389 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
|
| H A D | spa.c | 2189 vd->vdev_top = vd; in spa_load_spares() 2300 vd->vdev_top = vd; in spa_load_l2cache() 6120 vd->vdev_top = vd; 7348 if (pvd->vdev_top != NULL) 7349 tvd = pvd->vdev_top; 7453 tvd = newvd->vdev_top; 7454 ASSERT(pvd->vdev_top == tvd); 7713 tvd = cvd->vdev_top; 7825 vd->vdev_top->vdev_removing)) { 8316 vdev_t *tvd = vml[c]->vdev_top; [all …]
|
| H A D | vdev_label.c | 431 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress() 493 vd == vd->vdev_top) { in vdev_config_generate() 574 ASSERT(vd == vd->vdev_top); in vdev_config_generate() 1700 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
|
| H A D | vdev_raidz.c | 1566 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize() 1603 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() 1732 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() 2486 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 2530 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
|
| H A D | zfs_fm.c | 1234 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum() 1236 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
|
| H A D | zio.c | 1573 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io() 3932 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start() 3939 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start() 4009 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start() 4606 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
|
| H A D | vdev_removal.c | 2063 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log() 2174 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
|
| H A D | metaslab.c | 469 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate() 748 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | vdev_impl.h | 247 vdev_t *vdev_top; /* top-level vdev */ member 482 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/ |
| H A D | ztest.c | 3675 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach() 3677 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_SPECIAL || in ztest_vdev_attach_detach() 3678 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_DEDUP; in ztest_vdev_attach_detach() 3766 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 3926 vdev_t *tvd = vd->vdev_top; in online_vdev() 6123 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject() 6132 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject() 6758 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_geom.c | 698 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 1526 if (vd->vdev_top == vd) { in get_metaslab_refcount() 1548 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount() 1586 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount() 4886 vd.vdev_top = &vd; in dump_label_uberblocks() 5341 vd.vdev_top = &vd; in dump_label() 8772 if (vd == vd->vdev_top) { in zdb_read_block() 8871 if (vd == vd->vdev_top) { in zdb_read_block()
|