| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | vdev_initialize.c | 55 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_initialize_should_stop() 74 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_update_sync() 360 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress() 361 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress() 366 vdev_get_ndisks(vd->vdev_top); in vdev_initialize_calculate_progress() 510 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread() 511 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread() 518 if (vd->vdev_top->vdev_ms_count != ms_count) { in vdev_initialize_thread() 520 ms_count = vd->vdev_top->vdev_ms_count; in vdev_initialize_thread() 599 ASSERT(!vd->vdev_top->vdev_removing); in vdev_initialize() [all …]
|
| H A D | vdev.c | 300 if (vd == vd->vdev_top) in vdev_get_min_asize() 444 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child() 1188 vd->vdev_top = tvd; in vdev_top_update() 1223 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent() 1225 if (mvd == mvd->vdev_top) in vdev_add_parent() 1277 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent() 1279 if (cvd == cvd->vdev_top) in vdev_remove_parent() 3619 tvd = vd->vdev_top; in vdev_fault() 3741 tvd = vd->vdev_top; in vdev_online() 3831 tvd = vd->vdev_top; in vdev_offline_locked() [all …]
|
| H A D | vdev_trim.c | 528 vdev_autotrim_should_stop(vd->vdev_top))) { in vdev_trim_range() 649 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_calculate_progress() 654 vdev_get_ndisks(vd->vdev_top); in vdev_trim_calculate_progress() 881 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_trim_thread() 882 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_trim_thread() 890 ms_count = vd->vdev_top->vdev_ms_count; in vdev_trim_thread() 978 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim() 1185 ASSERT3P(vd->vdev_top, ==, vd); in vdev_autotrim_thread() 1458 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim() 1642 ASSERT(!vd->vdev_top->vdev_removing); in vdev_trim_l2arc() [all …]
|
| H A D | vdev_rebuild.c | 281 ASSERT(vd->vdev_top == vd); in vdev_rebuild_initiate() 706 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load() 755 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread() 988 ASSERT(vd->vdev_top == vd); in vdev_rebuild() 1068 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait() 1104 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
|
| H A D | vdev_mirror.c | 521 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_readable() 532 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_missing()
|
| H A D | spa_config.c | 458 vd->vdev_top->vdev_guid); in spa_config_generate() 467 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
|
| H A D | spa_misc.c | 1187 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter() 1343 vdev_t *vdev_top; in spa_vdev_state_exit() local 1346 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit() 1348 vdev_top = vd->vdev_top; in spa_vdev_state_exit() 1352 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit() 1356 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
|
| H A D | vdev_draid.c | 889 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 936 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 1026 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 1088 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 1146 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 2249 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate() 2690 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare()
|
| H A D | spa.c | 1767 vd->vdev_top = vd; in spa_load_spares() 1879 vd->vdev_top = vd; in spa_load_l2cache() 5498 vd->vdev_top = vd; 6682 if (pvd->vdev_top != NULL) 6683 tvd = pvd->vdev_top; 6787 tvd = newvd->vdev_top; 6788 ASSERT(pvd->vdev_top == tvd); 7047 tvd = cvd->vdev_top; 7159 vd->vdev_top->vdev_removing)) { 7648 vdev_t *tvd = vml[c]->vdev_top; [all …]
|
| H A D | vdev_label.c | 413 if (vd == vd->vdev_top) { in top_vdev_actions_getprogress() 472 vd == vd->vdev_top) { in vdev_config_generate() 544 ASSERT(vd == vd->vdev_top); in vdev_config_generate() 1627 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) in vdev_uberblock_sync_done()
|
| H A D | vdev_raidz.c | 1660 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize() 1696 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() 1831 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() 2580 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 2622 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
|
| H A D | zfs_fm.c | 1114 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum() 1116 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
|
| H A D | zio.c | 1466 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io() 3724 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start() 3731 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start() 3801 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start() 4411 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
|
| H A D | vdev_removal.c | 1860 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log() 1970 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
|
| H A D | metaslab.c | 469 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate() 739 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | vdev_impl.h | 263 vdev_t *vdev_top; /* top-level vdev */ member 479 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
| /f-stack/freebsd/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 1382 if (vd->vdev_top == vd) { in get_metaslab_refcount() 1404 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount() 1442 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount() 4454 vd.vdev_top = &vd; in dump_label_uberblocks() 4709 vd.vdev_top = &vd; in dump_label() 7955 if (vd == vd->vdev_top) { in zdb_read_block() 8054 if (vd == vd->vdev_top) { in zdb_read_block()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_geom.c | 694 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
|
| /f-stack/freebsd/contrib/openzfs/cmd/ztest/ |
| H A D | ztest.c | 3549 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach() 3635 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 3795 vdev_t *tvd = vd->vdev_top; in online_vdev() 5957 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject() 5966 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject() 6431 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
|