| /freebsd-13.1/sys/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() 361 for (uint64_t i = 0; i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_calculate_progress() 362 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_calculate_progress() 367 vdev_get_ndisks(vd->vdev_top); in vdev_initialize_calculate_progress() 511 i < vd->vdev_top->vdev_ms_count; i++) { in vdev_initialize_thread() 512 metaslab_t *msp = vd->vdev_top->vdev_ms[i]; in vdev_initialize_thread() 519 if (vd->vdev_top->vdev_ms_count != ms_count) { in vdev_initialize_thread() 521 ms_count = vd->vdev_top->vdev_ms_count; in vdev_initialize_thread() 600 ASSERT(!vd->vdev_top->vdev_removing); in vdev_initialize() [all …]
|
| H A D | vdev.c | 340 if (vd == vd->vdev_top) in vdev_get_min_asize() 484 cvd->vdev_top = (pvd->vdev_top ? pvd->vdev_top: cvd); in vdev_add_child() 1242 vd->vdev_top = tvd; in vdev_top_update() 1277 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_add_parent() 1279 if (mvd == mvd->vdev_top) in vdev_add_parent() 1331 vdev_top_update(cvd->vdev_top, cvd->vdev_top); in vdev_remove_parent() 1333 if (cvd == cvd->vdev_top) in vdev_remove_parent() 3817 tvd = vd->vdev_top; in vdev_fault() 3939 tvd = vd->vdev_top; in vdev_online() 4029 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() 1186 ASSERT3P(vd->vdev_top, ==, vd); in vdev_autotrim_thread() 1459 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim() 1643 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() 709 ASSERT(vd->vdev_top == vd); in vdev_rebuild_load() 758 ASSERT3P(vd->vdev_top, ==, vd); in vdev_rebuild_thread() 991 ASSERT(vd->vdev_top == vd); in vdev_rebuild() 1071 ASSERT(vd == vd->vdev_top); in vdev_rebuild_stop_wait() 1107 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
|
| H A D | vdev_mirror.c | 518 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_readable() 529 if (vd->vdev_top != NULL && vd->vdev_top->vdev_ops == &vdev_draid_ops) in vdev_mirror_child_missing()
|
| H A D | spa_config.c | 462 vd->vdev_top->vdev_guid); in spa_config_generate() 471 vd = vd->vdev_top; /* label contains top config */ in spa_config_generate()
|
| H A D | vdev_draid.c | 651 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 698 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 788 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 855 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty() 903 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 961 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 2096 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_draid_xlate() 2537 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare()
|
| H A D | spa_misc.c | 1194 vdev_rebuild_stop_wait(vd->vdev_top); in spa_vdev_detach_enter() 1351 vdev_t *vdev_top; in spa_vdev_state_exit() local 1354 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit() 1356 vdev_top = vd->vdev_top; in spa_vdev_state_exit() 1360 vdev_dtl_reassess(vdev_top, 0, 0, B_FALSE, B_FALSE); in spa_vdev_state_exit() 1364 vdev_state_dirty(vdev_top); in spa_vdev_state_exit()
|
| H A D | spa.c | 1832 vd->vdev_top = vd; in spa_load_spares() 1944 vd->vdev_top = vd; in spa_load_l2cache() 5592 vd->vdev_top = vd; 6795 if (pvd->vdev_top != NULL) 6796 tvd = pvd->vdev_top; 6900 tvd = newvd->vdev_top; 6901 ASSERT(pvd->vdev_top == tvd); 7160 tvd = cvd->vdev_top; 7272 vd->vdev_top->vdev_removing)) { 7761 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() 1635 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 | 1458 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize() 1494 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() 1629 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() 2370 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 2414 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
|
| H A D | zfs_fm.c | 1162 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum() 1164 vdev_psize_to_asize(vd->vdev_top, report->zcr_sector); in zfs_ereport_start_checksum()
|
| H A D | zio.c | 1461 (vd != vd->vdev_top || (flags & ZIO_FLAG_IO_RETRY))) { in zio_vdev_child_io() 3776 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start() 3783 ASSERT(vd == vd->vdev_top); in zio_vdev_io_start() 3853 vd->vdev_top->vdev_ops != &vdev_draid_ops && in zio_vdev_io_start() 4462 ASSERT3P(vd, ==, vd->vdev_top); in zio_dva_throttle_done()
|
| H A D | vdev_removal.c | 1870 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log() 1982 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() 745 ASSERT(vd == vd->vdev_top); in metaslab_group_alloc_update()
|
| /freebsd-13.1/sys/contrib/openzfs/include/sys/ |
| H A D | vdev_impl.h | 263 vdev_t *vdev_top; /* top-level vdev */ member 484 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 1412 if (vd->vdev_top == vd) { in get_metaslab_refcount() 1434 if (vd->vdev_top == vd && obsolete_sm_object != 0) { in get_obsolete_refcount() 1472 if (vd->vdev_top == vd && vd->vdev_top_zap != 0 && in get_checkpoint_refcount() 4486 vd.vdev_top = &vd; in dump_label_uberblocks() 4823 vd.vdev_top = &vd; in dump_label() 8087 if (vd == vd->vdev_top) { in zdb_read_block() 8186 if (vd == vd->vdev_top) { in zdb_read_block()
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/ztest/ |
| H A D | ztest.c | 3680 oldvd_is_log = oldvd->vdev_top->vdev_islog; in ztest_vdev_attach_detach() 3766 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 3926 vdev_t *tvd = vd->vdev_top; in online_vdev() 6088 if (vd0 != NULL && vd0->vdev_top->vdev_islog) in ztest_fault_inject() 6097 (!vdev_resilver_needed(vd0->vdev_top, NULL, NULL) || in ztest_fault_inject() 6631 if (cvd->vdev_top->vdev_removing) in ztest_random_concrete_vdev_leaf()
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_geom.c | 699 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok()
|