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.c51 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_initialize_should_stop()
70 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_update_sync()
321 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress()
322 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress()
328 if (vd->vdev_top->vdev_ops == &vdev_raidz_ops) in vdev_initialize_calculate_progress()
329 ms_free /= vd->vdev_top->vdev_children; in vdev_initialize_calculate_progress()
429 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
431 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
485 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread()
486 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread()
[all …]
H A Dvdev_trim.c172 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_trim_should_stop()
206 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_trim_zap_update_sync()
503 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range()
606 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_calculate_progress()
607 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress()
613 if (vd->vdev_top->vdev_ops == &vdev_raidz_ops) 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()
[all …]
H A Dvdev.c238 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
271 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()
383 ASSERT(cvd->vdev_top->vdev_parent->vdev_parent == NULL); in vdev_add_child()
979 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1076 vd->vdev_top = tvd; in vdev_top_update()
1108 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent()
1110 if (mvd == mvd->vdev_top) in vdev_add_parent()
1142 if (mvd->vdev_top == mvd) { in vdev_remove_parent()
1150 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent()
[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.c1678 vd->vdev_top = vd; in spa_load_spares()
1791 vd->vdev_top = vd; in spa_load_l2cache()
4949 vd->vdev_top = vd;
6287 if (oldvd->vdev_top->vdev_islog && newvd->vdev_isspare)
6342 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift)
6371 ASSERT(pvd->vdev_top->vdev_parent == rvd);
6383 tvd = newvd->vdev_top;
6384 ASSERT(pvd->vdev_top == tvd);
6628 tvd = cvd->vdev_top;
6740 vd->vdev_top->vdev_removing)) {
[all …]
H A Dvdev_label.c474 vd == vd->vdev_top) { in vdev_config_generate()
542 ASSERT(vd == vd->vdev_top); in vdev_config_generate()
1550 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 Dspa_misc.c1379 vdev_dtl_reassess(vd ? vd->vdev_top : spa->spa_root_vdev, in spa_vdev_state_exit()
1383 vdev_state_dirty(vd->vdev_top); in spa_vdev_state_exit()
H A Dvdev_removal.c1762 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
1876 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
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.c695 if (vd->vdev_top == vd) { in get_metaslab_refcount()
716 if (vd->vdev_top == vd && obsolete_sm_obj != 0) { in get_obsolete_refcount()
754 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount()
3184 vd.vdev_top = &vd; in dump_label_uberblocks()
3332 vd.vdev_top = &vd; in dump_label()
6131 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()