Lines Matching refs:vdev_top
329 ASSERT0(asize % (1ULL << vd->vdev_top->vdev_ashift)); in vdev_default_psize()
346 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
385 if (vd == vd->vdev_top) in vdev_get_min_asize()
557 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
558 ASSERT(cvd->vdev_top->vdev_parent->vdev_parent == NULL); in vdev_add_child()
1237 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1347 vd->vdev_top = tvd; in vdev_top_update()
1382 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1384 if (mvd == mvd->vdev_top) in vdev_add_parent()
1417 if (mvd->vdev_top == mvd) { in vdev_remove_parent()
1436 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent()
1438 if (cvd == cvd->vdev_top) in vdev_remove_parent()
1518 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_metaslab_group_create()
1999 if (vd == vd->vdev_top && !vd->vdev_ishole && vd->vdev_ashift != 0) { in vdev_set_deflate_ratio()
2033 ASSERT(vd == vd->vdev_top); in vdev_ashift_optimize()
2259 if (vd->vdev_top == vd && vd->vdev_attaching == B_FALSE) in vdev_open()
2273 if (vd->vdev_ashift > vd->vdev_top->vdev_ashift && in vdev_open()
2319 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_open()
2507 if (vd != vd->vdev_top || vd->vdev_guid != top_guid) in vdev_validate()
2511 vd->vdev_top->vdev_guid != guid) in vdev_validate()
2523 (u_longlong_t)vd->vdev_top->vdev_guid); in vdev_validate()
2671 ASSERT(stvd->vdev_top == stvd); in vdev_copy_path_search()
2672 ASSERT3U(stvd->vdev_id, ==, dvd->vdev_top->vdev_id); in vdev_copy_path_search()
2943 ASSERT(vd == vd->vdev_top); in vdev_dirty()
2965 vdev_dirty(vd->vdev_top, flags, vd, txg); in vdev_dirty_leaves()
3142 vdev_rebuild_t *vr = &vd->vdev_top->vdev_rebuild_config; in vdev_dtl_should_excise()
3210 vdev_rebuild_t *vr = &vd->vdev_top->vdev_rebuild_config; in vdev_dtl_reassess_impl()
3325 vdev_config_dirty(vd->vdev_top); in vdev_dtl_reassess_impl()
3328 vdev_config_dirty(vd->vdev_top); in vdev_dtl_reassess_impl()
3335 vdev_dirty(vd->vdev_top, VDD_DTL, vd, txg); in vdev_dtl_reassess_impl()
3370 if (vd->vdev_top->vdev_ops == &vdev_raidz_ops) { in vdev_dtl_reassess_impl()
3512 !vd->vdev_top->vdev_removing) { in vdev_construct_zaps()
3516 if (vd == vd->vdev_top && vd->vdev_top_zap == 0) { in vdev_construct_zaps()
3549 if (vd->vdev_detached || vd->vdev_top->vdev_removing) { in vdev_dtl_sync()
3562 vd->vdev_top->vdev_islog)) { in vdev_dtl_sync()
3603 vdev_config_dirty(vd->vdev_top); in vdev_dtl_sync()
3621 vdev_t *tvd = vd->vdev_top; in vdev_dtl_required()
3769 if (vd == vd->vdev_top && vd->vdev_top_zap != 0) { in vdev_load()
3789 if (vd == vd->vdev_top && vd->vdev_top_zap != 0) { in vdev_load()
3812 if (vd == vd->vdev_top && vd->vdev_top_zap != 0) { in vdev_load()
3871 if (vd == vd->vdev_top && vdev_is_concrete(vd)) { in vdev_load()
4064 ASSERT(vd == vd->vdev_top); in vdev_remove_empty_log()
4128 ASSERT(vd == vd->vdev_top); in vdev_sync()
4195 tvd = vd->vdev_top; in vdev_fault()
4344 tvd = vd->vdev_top; in vdev_online()
4445 tvd = vd->vdev_top; in vdev_offline_locked()
4598 vdev_reopen(vd == rvd ? rvd : vd->vdev_top); in vdev_clear()
4602 if (vd != rvd && vdev_writeable(vd->vdev_top)) in vdev_clear()
4603 vdev_state_dirty(vd->vdev_top); in vdev_clear()
4816 vdev_t *tvd = vd->vdev_top; in vdev_get_stats_ex()
4868 vs->vs_configured_ashift = vd->vdev_top != NULL in vdev_get_stats_ex()
4869 ? vd->vdev_top->vdev_ashift : vd->vdev_ashift; in vdev_get_stats_ex()
4880 if (vd->vdev_aux == NULL && vd == vd->vdev_top && in vdev_get_stats_ex()
5000 vdev_t *tvd = vd->vdev_top; in vdev_stat_update()
5136 vdev_dirty(vd->vdev_top, VDD_DTL, vd, commit_txg); in vdev_stat_update()
5165 ASSERT(vd == vd->vdev_top); in vdev_space_update()
5268 ASSERT(vd == vd->vdev_top); in vdev_config_dirty()
5302 ASSERT(vd == vd->vdev_top); in vdev_state_dirty()
5616 ASSERT(vd->vdev_top == vd); in vdev_expand()
5754 if (vd != vd->vdev_top) { in vdev_xlate()
6420 vd->vdev_top != NULL) { in vdev_prop_get()