Lines Matching full:tx
92 dsl_destroy_snapshot_check(void *arg, dmu_tx_t *tx) in dsl_destroy_snapshot_check() argument
98 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_snapshot_check()
129 process_old_cb(void *arg, const blkptr_t *bp, boolean_t bp_freed, dmu_tx_t *tx) in process_old_cb() argument
138 dsl_deadlist_insert(&poa->ds->ds_deadlist, bp, bp_freed, tx); in process_old_cb()
149 dsl_free_sync(poa->pio, dp, tx->tx_txg, bp); in process_old_cb()
156 dsl_dataset_t *ds_next, boolean_t after_branch_point, dmu_tx_t *tx) in process_old_deadlist() argument
171 process_old_cb, &poa, tx)); in process_old_deadlist()
177 -poa.used, -poa.comp, -poa.uncomp, tx); in process_old_deadlist()
206 dsl_dir_remove_clones_key_impl(dsl_dir_t *dd, uint64_t mintxg, dmu_tx_t *tx, in dsl_dir_remove_clones_key_impl() argument
232 mintxg, tx); in dsl_dir_remove_clones_key_impl()
236 &clone->ds_remap_deadlist, mintxg, tx); in dsl_dir_remove_clones_key_impl()
251 dsl_dir_remove_clones_key(dsl_dir_t *top_dd, uint64_t mintxg, dmu_tx_t *tx) in dsl_dir_remove_clones_key() argument
258 dsl_dir_remove_clones_key_impl(top_dd, mintxg, tx, &stack, FTAG); in dsl_dir_remove_clones_key()
266 dsl_dir_remove_clones_key_impl(clone_dir, mintxg, tx, in dsl_dir_remove_clones_key()
276 dmu_tx_t *tx) in dsl_destroy_snapshot_handle_remaps() argument
283 dsl_pool_create_obsolete_bpobj(dp, tx); in dsl_destroy_snapshot_handle_remaps()
287 dsl_dataset_phys(ds)->ds_prev_snap_txg, tx); in dsl_destroy_snapshot_handle_remaps()
298 dsl_dataset_create_remap_deadlist(ds_next, tx); in dsl_destroy_snapshot_handle_remaps()
302 remap_deadlist_object, tx); in dsl_destroy_snapshot_handle_remaps()
303 dsl_dataset_destroy_remap_deadlist(ds, tx); in dsl_destroy_snapshot_handle_remaps()
308 dsl_destroy_snapshot_sync_impl(dsl_dataset_t *ds, boolean_t defer, dmu_tx_t *tx) in dsl_destroy_snapshot_sync_impl() argument
319 tx->tx_txg); in dsl_destroy_snapshot_sync_impl()
327 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
330 spa_history_log_internal_ds(ds, "defer_destroy", tx, in dsl_destroy_snapshot_sync_impl()
340 spa_history_log_internal_ds(ds, "destroy", tx, " "); in dsl_destroy_snapshot_sync_impl()
343 dsl_scan_ds_destroyed(ds, tx); in dsl_destroy_snapshot_sync_impl()
347 boolean_t book_exists = dsl_bookmark_ds_destroyed(ds, tx); in dsl_destroy_snapshot_sync_impl()
351 dsl_dataset_deactivate_feature(ds, f, tx); in dsl_destroy_snapshot_sync_impl()
360 dmu_buf_will_dirty(ds_prev->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
363 dsl_dataset_remove_from_next_clones(ds_prev, obj, tx); in dsl_destroy_snapshot_sync_impl()
369 tx)); in dsl_destroy_snapshot_sync_impl()
388 dmu_buf_will_dirty(ds_next->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
398 after_branch_point, tx); in dsl_destroy_snapshot_sync_impl()
414 -used, -comp, -uncomp, tx); in dsl_destroy_snapshot_sync_impl()
419 tx); in dsl_destroy_snapshot_sync_impl()
420 dsl_dir_diduse_space(tx->tx_pool->dp_free_dir, in dsl_destroy_snapshot_sync_impl()
421 DD_USED_HEAD, used, comp, uncomp, tx); in dsl_destroy_snapshot_sync_impl()
425 dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_snapshot_sync_impl()
436 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_snapshot_sync_impl()
437 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
440 dsl_destroy_snapshot_handle_remaps(ds, ds_next, tx); in dsl_destroy_snapshot_sync_impl()
445 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
479 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
483 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
513 DD_USED_REFRSRV, -mrsdelta, 0, 0, tx); in dsl_destroy_snapshot_sync_impl()
544 VERIFY0(dsl_dataset_snap_remove(ds_head, ds->ds_snapname, tx, B_TRUE)); in dsl_destroy_snapshot_sync_impl()
550 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_snapshot_sync_impl()
558 dsl_dataset_phys(ds)->ds_next_clones_obj, tx)); in dsl_destroy_snapshot_sync_impl()
562 tx)); in dsl_destroy_snapshot_sync_impl()
565 tx)); in dsl_destroy_snapshot_sync_impl()
568 dmu_object_free_zapified(mos, obj, tx); in dsl_destroy_snapshot_sync_impl()
572 dsl_destroy_snapshot_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_snapshot_sync() argument
578 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_snapshot_sync()
585 dsl_destroy_snapshot_sync_impl(ds, defer, tx); in dsl_destroy_snapshot_sync()
709 dmu_tx_t *tx; member
718 dmu_tx_t *tx = ka->tx; in kill_blkptr() local
730 dsl_free(ka->tx->tx_pool, ka->tx->tx_txg, bp); in kill_blkptr()
735 (void) dsl_dataset_block_kill(ka->ds, bp, tx, B_FALSE); in kill_blkptr()
742 old_synchronous_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in old_synchronous_dataset_destroy() argument
746 spa_history_log_internal_ds(ds, "destroy", tx, in old_synchronous_dataset_destroy()
758 ka.tx = tx; in old_synchronous_dataset_destroy()
814 dsl_destroy_head_check(void *arg, dmu_tx_t *tx) in dsl_destroy_head_check() argument
817 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_check()
831 dsl_dir_destroy_sync(uint64_t ddobj, dmu_tx_t *tx) in dsl_dir_destroy_sync() argument
834 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dir_destroy_sync()
838 ASSERT(RRW_WRITE_HELD(&dmu_tx_pool(tx)->dp_config_rwlock)); in dsl_dir_destroy_sync()
847 DD_FIELD_FILESYSTEM_COUNT, tx); in dsl_dir_destroy_sync()
853 dsl_dir_set_reservation_sync_impl(dd, 0, tx); in dsl_dir_destroy_sync()
861 dsl_crypto_key_destroy_sync(dd->dd_crypto_obj, tx); in dsl_dir_destroy_sync()
865 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_child_dir_zapobj, tx)); in dsl_dir_destroy_sync()
866 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_props_zapobj, tx)); in dsl_dir_destroy_sync()
868 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_clones, tx)); in dsl_dir_destroy_sync()
869 VERIFY0(dsl_deleg_destroy(mos, dsl_dir_phys(dd)->dd_deleg_zapobj, tx)); in dsl_dir_destroy_sync()
872 dd->dd_myname, tx)); in dsl_dir_destroy_sync()
875 dmu_object_free_zapified(mos, ddobj, tx); in dsl_dir_destroy_sync()
904 dsl_async_clone_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_async_clone_destroy() argument
909 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_async_clone_destroy()
911 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_async_clone_destroy()
919 spa_history_log_internal_ds(ds, "destroy", tx, in dsl_async_clone_destroy()
926 zil_destroy_sync(dmu_objset_zil(os), tx); in dsl_async_clone_destroy()
935 DMU_OT_NONE, 0, tx); in dsl_async_clone_destroy()
938 &(zap_obj), tx)); in dsl_async_clone_destroy()
945 VERIFY0(zap_add_int(mos, zap_obj, to_delete, tx)); in dsl_async_clone_destroy()
951 tx); in dsl_async_clone_destroy()
953 used, comp, uncomp, tx); in dsl_async_clone_destroy()
954 dsl_dir_remove_livelist(dd, tx, B_FALSE); in dsl_async_clone_destroy()
963 dsl_async_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_async_dataset_destroy() argument
969 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_async_dataset_destroy()
972 spa_history_log_internal_ds(ds, "destroy", tx, in dsl_async_dataset_destroy()
976 zil_destroy_sync(dmu_objset_zil(os), tx); in dsl_async_dataset_destroy()
982 tx); in dsl_async_dataset_destroy()
983 dp->dp_bptree_obj = bptree_alloc(mos, tx); in dsl_async_dataset_destroy()
987 &dp->dp_bptree_obj, tx)); in dsl_async_dataset_destroy()
1003 used, comp, uncomp, tx); in dsl_async_dataset_destroy()
1006 -used, -comp, -uncomp, tx); in dsl_async_dataset_destroy()
1008 used, comp, uncomp, tx); in dsl_async_dataset_destroy()
1012 dsl_destroy_head_sync_impl(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_destroy_head_sync_impl() argument
1014 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_sync_impl()
1024 tx->tx_txg); in dsl_destroy_head_sync_impl()
1039 0, tx); in dsl_destroy_head_sync_impl()
1047 dsl_dataset_deactivate_feature(ds, f, tx); in dsl_destroy_head_sync_impl()
1050 dsl_scan_ds_destroyed(ds, tx); in dsl_destroy_head_sync_impl()
1059 dmu_buf_will_dirty(ds->ds_prev->ds_dbuf, tx); in dsl_destroy_head_sync_impl()
1062 obj, tx); in dsl_destroy_head_sync_impl()
1076 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_head_sync_impl()
1077 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_head_sync_impl()
1081 dsl_dataset_destroy_remap_deadlist(ds, tx); in dsl_destroy_head_sync_impl()
1089 dsl_async_clone_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1092 dsl_async_dataset_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1094 old_synchronous_dataset_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1101 ds->ds_object, tx)); in dsl_destroy_head_sync_impl()
1118 dmu_buf_will_dirty(ds->ds_dir->dd_dbuf, tx); in dsl_destroy_head_sync_impl()
1123 dsl_dataset_phys(ds)->ds_snapnames_zapobj, tx)); in dsl_destroy_head_sync_impl()
1139 tx); in dsl_destroy_head_sync_impl()
1143 dbn->dbn_phys.zbm_redaction_obj, tx)); in dsl_destroy_head_sync_impl()
1145 SPA_FEATURE_REDACTION_BOOKMARKS, tx); in dsl_destroy_head_sync_impl()
1149 SPA_FEATURE_BOOKMARK_WRITTEN, tx); in dsl_destroy_head_sync_impl()
1156 VERIFY0(zap_destroy(mos, ds->ds_bookmarks_obj, tx)); in dsl_destroy_head_sync_impl()
1157 spa_feature_decr(dp->dp_spa, SPA_FEATURE_BOOKMARKS, tx); in dsl_destroy_head_sync_impl()
1160 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_head_sync_impl()
1167 dmu_object_free_zapified(mos, obj, tx); in dsl_destroy_head_sync_impl()
1169 dsl_dir_destroy_sync(ddobj, tx); in dsl_destroy_head_sync_impl()
1174 dsl_destroy_snapshot_sync_impl(prev, B_FALSE, tx); in dsl_destroy_head_sync_impl()
1179 spa_delete_dataset_errlog(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_head_sync_impl()
1183 dsl_destroy_head_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_head_sync() argument
1186 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_sync()
1190 dsl_destroy_head_sync_impl(ds, tx); in dsl_destroy_head_sync()
1196 dsl_destroy_head_begin_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_head_begin_sync() argument
1199 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_begin_sync()
1205 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_head_begin_sync()
1208 spa_history_log_internal_ds(ds, "destroy begin", tx, " "); in dsl_destroy_head_begin_sync()