Lines Matching refs:vd

209 	vdev_t *vd = sdc->sdc_vd;  in spa_checkpoint_discard_sync_callback()  local
210 metaslab_t *ms = vd->vdev_ms[sme->sme_offset >> vd->vdev_ms_shift]; in spa_checkpoint_discard_sync_callback()
238 vdev_dirty(vd, VDD_METASLAB, ms, sdc->sdc_txg); in spa_checkpoint_discard_sync_callback()
242 ASSERT3U(vd->vdev_spa->spa_checkpoint_info.sci_dspace, >=, in spa_checkpoint_discard_sync_callback()
244 ASSERT3U(vd->vdev_stat.vs_checkpoint_space, >=, sme->sme_run); in spa_checkpoint_discard_sync_callback()
246 vd->vdev_spa->spa_checkpoint_info.sci_dspace -= sme->sme_run; in spa_checkpoint_discard_sync_callback()
247 vd->vdev_stat.vs_checkpoint_space -= sme->sme_run; in spa_checkpoint_discard_sync_callback()
261 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_accounting_verify() local
263 if (vd->vdev_checkpoint_sm != NULL) { in spa_checkpoint_accounting_verify()
265 -space_map_allocated(vd->vdev_checkpoint_sm); in spa_checkpoint_accounting_verify()
267 vd->vdev_stat.vs_checkpoint_space; in spa_checkpoint_accounting_verify()
271 ASSERT0(vd->vdev_stat.vs_checkpoint_space); in spa_checkpoint_accounting_verify()
280 vdev_t *vd = arg; in spa_checkpoint_discard_thread_sync() local
320 sdc.sdc_vd = vd; in spa_checkpoint_discard_thread_sync()
325 space_map_length(vd->vdev_checkpoint_sm) / sizeof (uint64_t); in spa_checkpoint_discard_thread_sync()
327 error = space_map_incremental_destroy(vd->vdev_checkpoint_sm, in spa_checkpoint_discard_thread_sync()
331 space_map_length(vd->vdev_checkpoint_sm) / sizeof (uint64_t); in spa_checkpoint_discard_thread_sync()
334 spa_checkpoint_accounting_verify(vd->vdev_spa); in spa_checkpoint_discard_thread_sync()
339 tx->tx_txg, vd->vdev_id, (words_before - words_after), in spa_checkpoint_discard_thread_sync()
347 error, vd->vdev_id); in spa_checkpoint_discard_thread_sync()
350 ASSERT0(space_map_allocated(vd->vdev_checkpoint_sm)); in spa_checkpoint_discard_thread_sync()
351 ASSERT0(space_map_length(vd->vdev_checkpoint_sm)); in spa_checkpoint_discard_thread_sync()
353 space_map_free(vd->vdev_checkpoint_sm, tx); in spa_checkpoint_discard_thread_sync()
354 space_map_close(vd->vdev_checkpoint_sm); in spa_checkpoint_discard_thread_sync()
355 vd->vdev_checkpoint_sm = NULL; in spa_checkpoint_discard_thread_sync()
357 VERIFY0(zap_remove(spa_meta_objset(vd->vdev_spa), in spa_checkpoint_discard_thread_sync()
358 vd->vdev_top_zap, VDEV_TOP_ZAP_POOL_CHECKPOINT_SM, tx)); in spa_checkpoint_discard_thread_sync()
401 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_discard_thread() local
403 while (vd->vdev_checkpoint_sm != NULL) { in spa_checkpoint_discard_thread()
404 space_map_t *checkpoint_sm = vd->vdev_checkpoint_sm; in spa_checkpoint_discard_thread()
411 ASSERT3P(vd->vdev_ops, !=, &vdev_indirect_ops); in spa_checkpoint_discard_thread()
430 error, vd->vdev_id); in spa_checkpoint_discard_thread()
434 spa_checkpoint_discard_thread_sync, vd, in spa_checkpoint_discard_thread()