/freebsd/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() 52 vd->vdev_top->vdev_rz_expanding); in vdev_initialize_should_stop() 71 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_initialize_zap_update_sync() 72 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_initialize_zap_update_sync() 109 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_remove_sync() 396 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress() 397 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress() 402 vdev_get_ndisks(vd->vdev_top); in vdev_initialize_calculate_progress() 546 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread() 547 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread() [all …]
|
H A D | vdev_trim.c | 172 vd->vdev_detached || vd->vdev_top->vdev_removing || in vdev_trim_should_stop() 173 vd->vdev_top->vdev_rz_expanding); in vdev_trim_should_stop() 228 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_trim_zap_update_sync() 229 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_trim_zap_update_sync() 552 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range() 686 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_calculate_progress() 687 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress() 692 vdev_get_ndisks(vd->vdev_top); in vdev_trim_calculate_progress() 919 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread() 920 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread() [all …]
|
H A D | vdev.c | 332 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize() 371 if (vd == vd->vdev_top) in vdev_get_min_asize() 543 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child() 544 ASSERT(cvd->vdev_top->vdev_parent->vdev_parent == NULL); in vdev_add_child() 1223 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer() 1333 vd->vdev_top = tvd; in vdev_top_update() 1368 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent() 1370 if (mvd == mvd->vdev_top) in vdev_add_parent() 1403 if (mvd->vdev_top == mvd) { in vdev_remove_parent() 1422 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent() [all …]
|
H A D | vdev_rebuild.c | 284 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate() 725 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load() 775 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread() 1016 ASSERT(vd->vdev_top == vd); in vdev_rebuild() 1098 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait() 1134 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 | 652 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 699 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 789 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 856 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty() 904 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 962 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 2090 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate() 2531 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 | 1269 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter() 1427 vdev_t *vdev_top; in spa_vdev_state_exit() local 1430 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit() 1432 vdev_top = vd->vdev_top; in spa_vdev_state_exit() 1436 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit() 1440 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
|
H A D | spa.c | 2297 vd->vdev_top = vd; in spa_load_spares() 2408 vd->vdev_top = vd; in spa_load_l2cache() 6259 vd->vdev_top = vd; 7529 if ((oldvd->vdev_top->vdev_alloc_bias != VDEV_BIAS_NONE || 7530 oldvd->vdev_top->vdev_islog) && newvd->vdev_isspare) { 7538 oldvd->vdev_top != vdev_draid_spare_get_parent(newvd)) { 7549 if (pvd->vdev_top != NULL) 7550 tvd = pvd->vdev_top; 7614 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) { 7687 ASSERT(pvd->vdev_top->vdev_parent == rvd); [all …]
|
H A D | vdev_raidz.c | 2247 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize() 2333 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify() 2391 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes() 2526 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() 2957 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct() 3615 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 3676 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate() 3935 int ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl() 3938 if (!range_tree_find_in(rt, 0, vd->vdev_top->vdev_asize, in raidz_reflow_impl() 4660 if (vd->vdev_top->vdev_id == vre->vre_vdev_id && in raidz_dtl_reassessed() [all …]
|
H A D | vdev_label.c | 443 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress() 505 vd == vd->vdev_top) { in vdev_config_generate() 586 ASSERT(vd == vd->vdev_top); in vdev_config_generate() 1732 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
|
H A D | zfs_fm.c | 1233 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum() 1235 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
|
H A D | zio.c | 1620 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io() 4325 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start() 4332 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start() 4402 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start() 5112 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 | 467 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate() 746 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | vdev_impl.h | 246 vdev_t *vdev_top; /* top-level vdev */ member 487 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 3807 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach() 3809 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_SPECIAL || in ztest_vdev_attach_detach() 3810 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_DEDUP; in ztest_vdev_attach_detach() 3898 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 4279 vdev_t *tvd = vd->vdev_top; in online_vdev() 6513 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject() 6522 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject() 7178 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | vdev_geom.c | 694 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 1426 if (vd->vdev_top == vd) { in get_metaslab_refcount() 1448 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount() 1486 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount() 4937 vd.vdev_top = &vd; in dump_label_uberblocks() 5392 vd.vdev_top = &vd; in dump_label() 8940 if (vd == vd->vdev_top) { in zdb_read_block() 9037 if (vd == vd->vdev_top) { in zdb_read_block()
|