Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_initialize.c52 vd->vdev_detached || vd->vdev_top->vdev_removing || in vdev_initialize_should_stop()
53 vd->vdev_top->vdev_rz_expanding); in vdev_initialize_should_stop()
72 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_initialize_zap_update_sync()
73 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_initialize_zap_update_sync()
110 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_remove_sync()
398 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress()
399 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress()
404 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.c352 ASSERT0(asize % (1ULL << vd->vdev_top->vdev_ashift)); in vdev_default_psize()
369 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
408 if (vd == vd->vdev_top) in vdev_get_min_asize()
602 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
603 ASSERT0P(cvd->vdev_top->vdev_parent->vdev_parent); in vdev_add_child()
1297 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1407 vd->vdev_top = tvd; in vdev_top_update()
1443 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1445 if (mvd == mvd->vdev_top) in vdev_add_parent()
1478 if (mvd->vdev_top == mvd) { in vdev_remove_parent()
[all …]
H A Dvdev_trim.c173 vd->vdev_detached || vd->vdev_top->vdev_removing || in vdev_trim_should_stop()
174 vd->vdev_top->vdev_rz_expanding); in vdev_trim_should_stop()
229 if (vd == NULL || vd->vdev_top->vdev_removing || in vdev_trim_zap_update_sync()
230 !vdev_is_concrete(vd) || vd->vdev_top->vdev_rz_expanding) in vdev_trim_zap_update_sync()
553 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range()
687 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_calculate_progress()
688 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress()
693 vdev_get_ndisks(vd->vdev_top); in vdev_trim_calculate_progress()
923 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread()
924 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread()
[all …]
H A Dvdev_rebuild.c285 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate()
732 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load()
782 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread()
1033 ASSERT(vd->vdev_top == vd); in vdev_rebuild()
1115 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait()
1167 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
H A Dvdev_mirror.c501 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_readable()
512 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_missing()
H A Dspa_config.c392 vd->vdev_top->vdev_guid); in spa_config_generate()
401 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
H A Dvdev_draid.c788 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write()
835 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub()
925 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty()
992 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty()
1040 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical()
1137 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row()
2316 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate()
2823 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare()
H A Dspa_misc.c1314 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter()
1473 vdev_t *vdev_top; in spa_vdev_state_exit() local
1476 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit()
1478 vdev_top = vd->vdev_top; in spa_vdev_state_exit()
1482 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit()
1486 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
H A Dmmp.c557 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in mmp_claim_uberblock_sync_done()
576 if (cvd->vdev_top == cvd) { in mmp_claim_uberblock_sync()
H A Dspa.c2576 vd->vdev_top = vd; in spa_load_spares()
2687 vd->vdev_top = vd; in spa_load_l2cache()
6941 vd->vdev_top = vd;
8338 if ((oldvd->vdev_top->vdev_alloc_bias != VDEV_BIAS_NONE ||
8339 oldvd->vdev_top->vdev_islog) && newvd->vdev_isspare) {
8347 oldvd->vdev_top != vdev_draid_spare_get_parent(newvd)) {
8358 if (pvd->vdev_top != NULL)
8359 tvd = pvd->vdev_top;
8429 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) {
8502 ASSERT(pvd->vdev_top->vdev_parent == rvd);
[all …]
H A Dvdev_raidz.c2285 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize_to_psize()
2320 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_psize_to_asize()
2440 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify()
2498 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes()
2673 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start()
3363 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct()
4040 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
4101 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
4381 uint_t ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl()
5153 if (vd->vdev_top->vdev_id == vre->vre_vdev_id && in raidz_dtl_reassessed()
[all …]
H A Dvdev_label.c444 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress()
506 vd == vd->vdev_top) { in vdev_config_generate()
589 ASSERT(vd == vd->vdev_top); in vdev_config_generate()
1750 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
H A Dzfs_fm.c1239 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
1241 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
H A Dzio.c1679 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY)) && in zio_vdev_child_io()
4677 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
4684 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start()
4754 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start()
5485 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
H A Dvdev_removal.c2114 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
2224 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
H A Dmetaslab.c504 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate()
997 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_label_os.c96 size_t size = 1ULL << childvd->vdev_top->vdev_ashift; in vdev_check_boot_reserve()
H A Dvdev_geom.c695 } 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.h244 vdev_t *vdev_top; /* top-level vdev */ member
495 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c3808 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach()
3810 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_SPECIAL || in ztest_vdev_attach_detach()
3811 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_DEDUP; in ztest_vdev_attach_detach()
3899 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()
4280 vdev_t *tvd = vd->vdev_top; in online_vdev()
6518 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject()
6527 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject()
7188 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c1474 if (vd->vdev_top == vd) { in get_metaslab_refcount()
1496 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount()
1534 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
5473 vd.vdev_top = &vd; in dump_label_uberblocks()
5928 vd.vdev_top = &vd; in dump_label()
9580 if (vd == vd->vdev_top) { in zdb_read_block()
9677 if (vd == vd->vdev_top) { in zdb_read_block()