Lines Matching refs:tx

89 dsl_destroy_snapshot_check(void *arg, dmu_tx_t *tx)
92 dsl_pool_t *dp = dmu_tx_pool(tx);
96 if (!dmu_tx_is_syncing(tx))
144 process_old_cb(void *arg, const blkptr_t *bp, dmu_tx_t *tx)
152 dsl_deadlist_insert(&poa->ds->ds_deadlist, bp, tx);
163 dsl_free_sync(poa->pio, dp, tx->tx_txg, bp);
170 dsl_dataset_t *ds_next, boolean_t after_branch_point, dmu_tx_t *tx)
185 process_old_cb, &poa, tx));
191 -poa.used, -poa.comp, -poa.uncomp, tx);
207 dsl_dataset_remove_clones_key(dsl_dataset_t *ds, uint64_t mintxg, dmu_tx_t *tx)
230 mintxg, tx);
231 dsl_dataset_remove_clones_key(clone, mintxg, tx);
239 dsl_destroy_snapshot_sync_impl(dsl_dataset_t *ds, boolean_t defer, dmu_tx_t *tx)
250 ASSERT3U(dsl_dataset_phys(ds)->ds_bp.blk_birth, <=, tx->tx_txg);
258 dmu_buf_will_dirty(ds->ds_dbuf, tx);
260 spa_history_log_internal_ds(ds, "defer_destroy", tx, "");
267 spa_history_log_internal_ds(ds, "destroy", tx, "");
269 dsl_scan_ds_destroyed(ds, tx);
275 dsl_dataset_deactivate_feature(obj, f, tx);
286 dmu_buf_will_dirty(ds_prev->ds_dbuf, tx);
289 dsl_dataset_remove_from_next_clones(ds_prev, obj, tx);
295 tx));
314 dmu_buf_will_dirty(ds_next->ds_dbuf, tx);
324 after_branch_point, tx);
340 -used, -comp, -uncomp, tx);
345 tx);
346 dsl_dir_diduse_space(tx->tx_pool->dp_free_dir,
347 DD_USED_HEAD, used, comp, uncomp, tx);
351 dsl_dataset_phys(ds)->ds_deadlist_obj, tx);
354 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx);
355 dmu_buf_will_dirty(ds->ds_dbuf, tx);
360 dsl_dataset_phys(ds)->ds_creation_txg, tx);
390 dsl_dataset_phys(ds)->ds_creation_txg, tx);
419 DD_USED_REFRSRV, -mrsdelta, 0, 0, tx);
449 VERIFY0(dsl_dataset_snap_remove(ds_head, ds->ds_snapname, tx, B_TRUE));
455 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx);
463 dsl_dataset_phys(ds)->ds_next_clones_obj, tx));
467 tx));
470 tx));
473 dmu_object_free_zapified(mos, obj, tx);
477 dsl_destroy_snapshot_sync(void *arg, dmu_tx_t *tx)
480 dsl_pool_t *dp = dmu_tx_pool(tx);
490 dsl_destroy_snapshot_sync_impl(ds, dsda->dsda_defer, tx);
549 dmu_tx_t *tx;
558 dmu_tx_t *tx = ka->tx;
569 dsl_free(ka->tx->tx_pool, ka->tx->tx_txg, bp);
574 (void) dsl_dataset_block_kill(ka->ds, bp, tx, B_FALSE);
581 old_synchronous_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx)
593 ka.tx = tx;
651 dsl_destroy_head_check(void *arg, dmu_tx_t *tx)
654 dsl_pool_t *dp = dmu_tx_pool(tx);
668 dsl_dir_destroy_sync(uint64_t ddobj, dmu_tx_t *tx)
671 dsl_pool_t *dp = dmu_tx_pool(tx);
675 ASSERT(RRW_WRITE_HELD(&dmu_tx_pool(tx)->dp_config_rwlock));
690 DD_FIELD_FILESYSTEM_COUNT, tx);
696 dsl_dir_set_reservation_sync_impl(dd, 0, tx);
703 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_child_dir_zapobj, tx));
704 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_props_zapobj, tx));
705 VERIFY0(dsl_deleg_destroy(mos, dsl_dir_phys(dd)->dd_deleg_zapobj, tx));
708 dd->dd_myname, tx));
711 dmu_object_free_zapified(mos, ddobj, tx);
715 dsl_destroy_head_sync_impl(dsl_dataset_t *ds, dmu_tx_t *tx)
717 dsl_pool_t *dp = dmu_tx_pool(tx);
726 ASSERT3U(dsl_dataset_phys(ds)->ds_bp.blk_birth, <=, tx->tx_txg);
731 spa_history_log_internal_ds(ds, "destroy", tx, "");
742 0, tx);
750 dsl_dataset_deactivate_feature(obj, f, tx);
755 dsl_scan_ds_destroyed(ds, tx);
764 dmu_buf_will_dirty(ds->ds_prev->ds_dbuf, tx);
767 obj, tx);
780 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx);
781 dmu_buf_will_dirty(ds->ds_dbuf, tx);
788 old_synchronous_dataset_destroy(ds, tx);
796 zil_destroy_sync(dmu_objset_zil(os), tx);
802 tx);
803 dp->dp_bptree_obj = bptree_alloc(mos, tx);
807 &dp->dp_bptree_obj, tx));
823 used, comp, uncomp, tx);
826 -used, -comp, -uncomp, tx);
828 used, comp, uncomp, tx);
835 ds->ds_object, tx));
852 dmu_buf_will_dirty(ds->ds_dir->dd_dbuf, tx);
857 dsl_dataset_phys(ds)->ds_snapnames_zapobj, tx));
860 VERIFY0(zap_destroy(mos, ds->ds_bookmarks, tx));
861 spa_feature_decr(dp->dp_spa, SPA_FEATURE_BOOKMARKS, tx);
864 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx);
871 dmu_object_free_zapified(mos, obj, tx);
873 dsl_dir_destroy_sync(ddobj, tx);
878 dsl_destroy_snapshot_sync_impl(prev, B_FALSE, tx);
884 dsl_destroy_head_sync(void *arg, dmu_tx_t *tx)
887 dsl_pool_t *dp = dmu_tx_pool(tx);
891 dsl_destroy_head_sync_impl(ds, tx);
896 dsl_destroy_head_begin_sync(void *arg, dmu_tx_t *tx)
899 dsl_pool_t *dp = dmu_tx_pool(tx);
905 dmu_buf_will_dirty(ds->ds_dbuf, tx);
908 spa_history_log_internal_ds(ds, "destroy begin", tx, "");