Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_initialize.c52 vd->vdev_top->vdev_rz_expanding); in vdev_initialize_should_stop()
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()
556 ms_count = vd->vdev_top->vdev_ms_count; in vdev_initialize_thread()
635 ASSERT(!vd->vdev_top->vdev_removing); in vdev_initialize()
636 ASSERT(!vd->vdev_top->vdev_rz_expanding); in vdev_initialize()
656 ASSERT(!vd->vdev_top->vdev_removing); in vdev_uninitialize()
807 !vd->vdev_top->vdev_removing && in vdev_initialize_restart()
[all …]
H A Dvdev_trim.c173 vd->vdev_top->vdev_rz_expanding); in vdev_trim_should_stop()
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()
928 ms_count = vd->vdev_top->vdev_ms_count; in vdev_trim_thread()
1011 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim()
1180 !vd->vdev_top->vdev_rz_expanding && in vdev_trim_restart()
1225 ASSERT3P(vd->vdev_top, ==, vd); in vdev_autotrim_thread()
1507 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim()
1706 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim_l2arc()
1730 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim_simple()
[all …]
H A Dvdev.c355 if (vd == vd->vdev_top) in vdev_get_min_asize()
527 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
1314 vd->vdev_top = tvd; in vdev_top_update()
1349 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1351 if (mvd == mvd->vdev_top) in vdev_add_parent()
1403 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent()
1405 if (cvd == cvd->vdev_top) in vdev_remove_parent()
4106 tvd = vd->vdev_top; in vdev_fault()
4255 tvd = vd->vdev_top; in vdev_online()
4356 tvd = vd->vdev_top; in vdev_offline_locked()
[all …]
H A Dvdev_rebuild.c284 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 Dvdev_mirror.c500 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 Dvdev_draid.c652 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 Dspa_config.c478 vd->vdev_top->vdev_guid); in spa_config_generate()
487 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
H A Dspa_misc.c1269 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 Dspa.c2232 vd->vdev_top = vd; in spa_load_spares()
2343 vd->vdev_top = vd; in spa_load_l2cache()
6190 vd->vdev_top = vd;
7476 if (pvd->vdev_top != NULL)
7477 tvd = pvd->vdev_top;
7627 tvd = newvd->vdev_top;
7628 ASSERT(pvd->vdev_top == tvd);
7912 tvd = cvd->vdev_top;
8024 vd->vdev_top->vdev_removing || vd->vdev_top->vdev_rz_expanding)) {
8516 vdev_t *tvd = vml[c]->vdev_top;
[all …]
H A Dvdev_raidz.c2237 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize()
2381 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes()
2516 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start()
2928 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct()
3581 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
3642 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
3901 int ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl()
3904 if (!range_tree_find_in(rt, 0, vd->vdev_top->vdev_asize, in raidz_reflow_impl()
4626 if (vd->vdev_top->vdev_id == vre->vre_vdev_id && in raidz_dtl_reassessed()
4627 !vdev_raidz_expand_child_replacing(vd->vdev_top)) { in raidz_dtl_reassessed()
[all …]
H A Dvdev_label.c439 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress()
501 vd == vd->vdev_top) { in vdev_config_generate()
582 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.c1231 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
1233 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
H A Dzio.c1582 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io()
3963 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
3970 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start()
4040 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start()
4651 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
H A Dvdev_removal.c2063 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
2174 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
H A Dmetaslab.c467 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 Dvdev_impl.h246 vdev_t *vdev_top; /* top-level vdev */ member
482 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c3782 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach()
3784 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_SPECIAL || in ztest_vdev_attach_detach()
3785 oldvd->vdev_top->vdev_alloc_bias == VDEV_BIAS_DEDUP; in ztest_vdev_attach_detach()
3873 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()
4254 vdev_t *tvd = vd->vdev_top; in online_vdev()
6473 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject()
6482 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject()
7112 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c698 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c1397 if (vd->vdev_top == vd) { in get_metaslab_refcount()
1419 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount()
1457 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
4781 vd.vdev_top = &vd; in dump_label_uberblocks()
5236 vd.vdev_top = &vd; in dump_label()
8709 if (vd == vd->vdev_top) { in zdb_read_block()
8806 if (vd == vd->vdev_top) { in zdb_read_block()