Home
last modified time | relevance | path

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

/src/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_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.c351 ASSERT0(asize % (1ULL << vd->vdev_top->vdev_ashift)); in vdev_default_psize()
368 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
407 if (vd == vd->vdev_top) in vdev_get_min_asize()
601 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
602 ASSERT0P(cvd->vdev_top->vdev_parent->vdev_parent); in vdev_add_child()
1296 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1406 vd->vdev_top = tvd; in vdev_top_update()
1442 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1444 if (mvd == mvd->vdev_top) in vdev_add_parent()
1477 if (mvd->vdev_top == mvd) { in vdev_remove_parent()
[all …]
H A Dvdev_rebuild.c285 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate()
729 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load()
779 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread()
1021 ASSERT(vd->vdev_top == vd); in vdev_rebuild()
1103 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait()
1139 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.c655 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write()
702 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub()
792 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty()
859 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty()
907 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical()
965 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row()
2120 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate()
2563 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.c2529 vd->vdev_top = vd; in spa_load_spares()
2640 vd->vdev_top = vd; in spa_load_l2cache()
6894 vd->vdev_top = vd;
8247 if ((oldvd->vdev_top->vdev_alloc_bias != VDEV_BIAS_NONE ||
8248 oldvd->vdev_top->vdev_islog) && newvd->vdev_isspare) {
8256 oldvd->vdev_top != vdev_draid_spare_get_parent(newvd)) {
8267 if (pvd->vdev_top != NULL)
8268 tvd = pvd->vdev_top;
8338 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) {
8411 ASSERT(pvd->vdev_top->vdev_parent == rvd);
[all …]
H A Dvdev_raidz.c2274 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize_to_psize()
2309 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_psize_to_asize()
2429 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify()
2487 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes()
2662 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start()
3310 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct()
3971 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
4032 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
4312 uint_t ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl()
5084 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()
1729 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.c1684 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io()
4682 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
4689 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start()
4759 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start()
5484 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()
2225 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
H A Dmetaslab.c504 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate()
991 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
/src/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()
/src/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), \
/src/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()
/src/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c1465 if (vd->vdev_top == vd) { in get_metaslab_refcount()
1487 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount()
1525 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
5142 vd.vdev_top = &vd; in dump_label_uberblocks()
5597 vd.vdev_top = &vd; in dump_label()
9250 if (vd == vd->vdev_top) { in zdb_read_block()
9347 if (vd == vd->vdev_top) { in zdb_read_block()