Home
last modified time | relevance | path

Searched refs:vdev_top (Results 1 – 22 of 22) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_initialize.c42 vd->vdev_detached || vd->vdev_top->vdev_removing || in vdev_initialize_should_stop()
43 vd->vdev_top->vdev_rz_expanding); in vdev_initialize_should_stop()
62 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_initialize_zap_update_sync()
63 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_initialize_zap_update_sync()
105 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_remove_sync()
397 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress()
398 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress()
403 vdev_get_ndisks(vd->vdev_top); in vdev_initialize_calculate_progress()
549 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread()
550 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread()
[all …]
H A Dvdev.c343 ASSERT0(asize % (1ULL << vd->vdev_top->vdev_ashift)); in vdev_default_psize()
360 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
399 if (vd == vd->vdev_top) in vdev_get_min_asize()
597 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
598 ASSERT0P(cvd->vdev_top->vdev_parent->vdev_parent); in vdev_add_child()
1311 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1421 vd->vdev_top = tvd; in vdev_top_update()
1457 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1459 if (mvd == mvd->vdev_top) in vdev_add_parent()
1492 if (mvd->vdev_top == mvd) { in vdev_remove_parent()
[all …]
H A Dvdev_trim.c163 vd->vdev_detached || vd->vdev_top->vdev_removing || in vdev_trim_should_stop()
164 vd->vdev_top->vdev_rz_expanding); in vdev_trim_should_stop()
219 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_trim_zap_update_sync()
220 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_trim_zap_update_sync()
543 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range()
677 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_calculate_progress()
678 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress()
683 vdev_get_ndisks(vd->vdev_top); in vdev_trim_calculate_progress()
913 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread()
914 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread()
[all …]
H A Dvdev_rebuild.c275 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate()
722 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load()
772 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread()
1023 ASSERT(vd->vdev_top == vd); in vdev_rebuild()
1105 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait()
1157 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
H A Dvdev_mirror.c491 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_readable()
502 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_missing()
H A Dmmp.c563 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in mmp_claim_uberblock_sync_done()
585 if (cvd->vdev_top == cvd) { in mmp_claim_uberblock_sync()
653 if (vd->vdev_top->vdev_ms_array != 0) in mmp_claim_uberblock_sync()
H A Dspa_config.c382 vd->vdev_top->vdev_guid); in spa_config_generate()
391 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
H A Dvdev_draid.c778 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write()
826 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub()
916 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty()
983 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty()
1031 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical()
1128 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row()
2308 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate()
2816 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare()
H A Dspa_misc.c1306 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter()
1465 vdev_t *vdev_top; in spa_vdev_state_exit() local
1468 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit()
1470 vdev_top = vd->vdev_top; in spa_vdev_state_exit()
1474 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit()
1478 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
H A Dvdev_label.c474 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress()
501 vd->vdev_top != NULL) { in vdev_config_generate()
503 vd->vdev_top->vdev_guid); in vdev_config_generate()
549 vd == vd->vdev_top) { in vdev_config_generate()
632 ASSERT(vd == vd->vdev_top); in vdev_config_generate()
1794 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
H A Dspa.c2572 vd->vdev_top = vd; in spa_load_spares()
2683 vd->vdev_top = vd; in spa_load_l2cache()
6994 vd->vdev_top = vd;
8396 if (oldvd->vdev_top->vdev_islog && newvd->vdev_isspare)
8405 oldvd->vdev_top->vdev_alloc_bias != VDEV_BIAS_NONE &&
8413 oldvd->vdev_top != vdev_draid_spare_get_parent(newvd)) {
8424 if (pvd->vdev_top != NULL)
8425 tvd = pvd->vdev_top;
8495 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) {
8568 ASSERT(pvd->vdev_top->vdev_parent == rvd);
[all …]
H A Dvdev_raidz.c2310 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize_to_psize()
2345 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_psize_to_asize()
2465 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify()
2523 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes()
2698 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start()
3396 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct()
4073 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
4134 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
4414 uint_t ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl()
5186 if (vd->vdev_top->vdev_id == vre->vre_vdev_id && in raidz_dtl_reassessed()
[all …]
H A Dzfs_fm.c1229 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
1231 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
H A Dzio.c1671 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY)) && in zio_vdev_child_io()
4721 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
4728 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start()
4798 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start()
5531 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
H A Dvdev_removal.c2108 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
2218 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
H A Dmetaslab.c501 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate()
994 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_label_os.c86 size_t size = 1ULL << childvd->vdev_top->vdev_ashift; in vdev_check_boot_reserve()
H A Dvdev_geom.c685 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dvdev_impl.h226 vdev_t *vdev_top; /* top-level vdev */ member
479 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
/freebsd/sys/contrib/openzfs/cmd/
H A Dzhack.c635 if (vd->vdev_parent != vd->vdev_top || in zhack_collect_absent()
636 vdev_get_nparity(vd->vdev_top) != 0) in zhack_collect_absent()
H A Dztest.c3764 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach()
3766 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_SPECIAL || in ztest_vdev_attach_detach()
3767 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_DEDUP; in ztest_vdev_attach_detach()
3855 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()
4236 vdev_t *tvd = vd->vdev_top; in online_vdev()
6496 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject()
6505 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject()
7166 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c1476 if (vd->vdev_top == vd) { in get_metaslab_refcount()
1498 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount()
1536 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
5520 vd.vdev_top = &vd; in dump_label_uberblocks()
5975 vd.vdev_top = &vd; in dump_label()
9690 if (vd == vd->vdev_top) { in zdb_read_block()
9787 if (vd == vd->vdev_top) { in zdb_read_block()