Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_initialize.c319 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress()
325 if (vd->vdev_top->vdev_ops == &vdev_raidz_ops) in vdev_initialize_calculate_progress()
326 ms_free /= vd->vdev_top->vdev_children; in vdev_initialize_calculate_progress()
426 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
428 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
482 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread()
483 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread()
490 if (vd->vdev_top->vdev_ms_count != ms_count) { in vdev_initialize_thread()
492 ms_count = vd->vdev_top->vdev_ms_count; in vdev_initialize_thread()
563 ASSERT(!vd->vdev_top->vdev_removing); in vdev_initialize()
[all …]
H A Dvdev_trim.c503 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range()
607 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress()
614 ms_free /= vd->vdev_top->vdev_children; in vdev_trim_calculate_progress()
761 IMPLY(vd->vdev_top == vd, in vdev_trim_range_add()
763 IMPLY(vd->vdev_top == vd, in vdev_trim_range_add()
850 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread()
851 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread()
859 ms_count = vd->vdev_top->vdev_ms_count; in vdev_trim_thread()
934 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim()
1129 ASSERT3P(vd->vdev_top, ==, vd); in vdev_autotrim_thread()
[all …]
H A Dvdev.c271 if (vd == vd->vdev_top) in vdev_get_min_asize()
382 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child()
1064 vd->vdev_top = tvd; in vdev_top_update()
1096 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1098 if (mvd == mvd->vdev_top) in vdev_add_parent()
1138 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent()
1140 if (cvd == cvd->vdev_top) in vdev_remove_parent()
3263 tvd = vd->vdev_top; in vdev_fault()
3359 tvd = vd->vdev_top; in vdev_online()
3439 tvd = vd->vdev_top; in vdev_offline_locked()
[all …]
H A Dspa_config.c427 vd->vdev_top->vdev_guid); in spa_config_generate()
438 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
H A Dvdev_raidz.c1683 vdev_t *tvd = vd->vdev_top; in vdev_raidz_dumpio()
1775 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize()
1801 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify()
1850 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start()
2510 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
2545 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
H A Dspa.c1677 vd->vdev_top = vd; in spa_load_spares()
1790 vd->vdev_top = vd; in spa_load_l2cache()
4948 vd->vdev_top = vd;
6370 ASSERT(pvd->vdev_top->vdev_parent == rvd);
6382 tvd = newvd->vdev_top;
6383 ASSERT(pvd->vdev_top == tvd);
6627 tvd = cvd->vdev_top;
6738 vd->vdev_top->vdev_removing)) {
7071 vml[c]->vdev_top->vdev_asize) == 0);
7073 vml[c]->vdev_top->vdev_ashift) == 0);
[all …]
H A Dvdev_label.c473 vd == vd->vdev_top) { in vdev_config_generate()
541 ASSERT(vd == vd->vdev_top); in vdev_config_generate()
1539 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
H A Dzfs_fm.c734 report->zcr_align = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
H A Dvdev_removal.c1761 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
1875 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
H A Dspa_misc.c1372 vdev_dtl_reassess(vd ? vd->vdev_top : spa->spa_root_vdev, in spa_vdev_state_exit()
1376 vdev_state_dirty(vd->vdev_top); in spa_vdev_state_exit()
H A Dzio.c1281 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io()
3458 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
3465 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start()
4121 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
H A Dmetaslab.c431 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate()
706 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h227 vdev_t *vdev_top; /* top-level vdev */ member
427 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c694 if (vd->vdev_top == vd) { in get_metaslab_refcount()
715 if (vd->vdev_top == vd && obsolete_sm_obj != 0) { in get_obsolete_refcount()
753 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
3169 vd.vdev_top = &vd; in dump_label_uberblocks()
3317 vd.vdev_top = &vd; in dump_label()
6116 if (vd == vd->vdev_top) { in zdb_read_block()
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c3297 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach()
3370 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()
3506 vdev_t *tvd = vd->vdev_top; in online_vdev()
5712 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject()
5721 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject()
6074 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()