Lines Matching full:tx

91 dsl_destroy_snapshot_check(void *arg, dmu_tx_t *tx)  in dsl_destroy_snapshot_check()  argument
97 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_snapshot_check()
128 process_old_cb(void *arg, const blkptr_t *bp, boolean_t bp_freed, dmu_tx_t *tx) in process_old_cb() argument
137 dsl_deadlist_insert(&poa->ds->ds_deadlist, bp, bp_freed, tx); in process_old_cb()
148 dsl_free_sync(poa->pio, dp, tx->tx_txg, bp); in process_old_cb()
155 dsl_dataset_t *ds_next, boolean_t after_branch_point, dmu_tx_t *tx) in process_old_deadlist() argument
170 process_old_cb, &poa, tx)); in process_old_deadlist()
176 -poa.used, -poa.comp, -poa.uncomp, tx); in process_old_deadlist()
205 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
231 mintxg, tx); in dsl_dir_remove_clones_key_impl()
235 &clone->ds_remap_deadlist, mintxg, tx); in dsl_dir_remove_clones_key_impl()
250 dsl_dir_remove_clones_key(dsl_dir_t *top_dd, uint64_t mintxg, dmu_tx_t *tx) in dsl_dir_remove_clones_key() argument
257 dsl_dir_remove_clones_key_impl(top_dd, mintxg, tx, &stack, FTAG); in dsl_dir_remove_clones_key()
265 dsl_dir_remove_clones_key_impl(clone_dir, mintxg, tx, in dsl_dir_remove_clones_key()
275 dmu_tx_t *tx) in dsl_destroy_snapshot_handle_remaps() argument
282 dsl_pool_create_obsolete_bpobj(dp, tx); in dsl_destroy_snapshot_handle_remaps()
286 dsl_dataset_phys(ds)->ds_prev_snap_txg, tx); in dsl_destroy_snapshot_handle_remaps()
297 dsl_dataset_create_remap_deadlist(ds_next, tx); in dsl_destroy_snapshot_handle_remaps()
301 remap_deadlist_object, tx); in dsl_destroy_snapshot_handle_remaps()
302 dsl_dataset_destroy_remap_deadlist(ds, tx); in dsl_destroy_snapshot_handle_remaps()
307 dsl_destroy_snapshot_sync_impl(dsl_dataset_t *ds, boolean_t defer, dmu_tx_t *tx) in dsl_destroy_snapshot_sync_impl() argument
318 tx->tx_txg); in dsl_destroy_snapshot_sync_impl()
326 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
329 spa_history_log_internal_ds(ds, "defer_destroy", tx, in dsl_destroy_snapshot_sync_impl()
339 spa_history_log_internal_ds(ds, "destroy", tx, " "); in dsl_destroy_snapshot_sync_impl()
342 dsl_scan_ds_destroyed(ds, tx); in dsl_destroy_snapshot_sync_impl()
346 boolean_t book_exists = dsl_bookmark_ds_destroyed(ds, tx); in dsl_destroy_snapshot_sync_impl()
350 dsl_dataset_deactivate_feature(ds, f, tx); in dsl_destroy_snapshot_sync_impl()
359 dmu_buf_will_dirty(ds_prev->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
362 dsl_dataset_remove_from_next_clones(ds_prev, obj, tx); in dsl_destroy_snapshot_sync_impl()
368 tx)); in dsl_destroy_snapshot_sync_impl()
387 dmu_buf_will_dirty(ds_next->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
397 after_branch_point, tx); in dsl_destroy_snapshot_sync_impl()
413 -used, -comp, -uncomp, tx); in dsl_destroy_snapshot_sync_impl()
418 tx); in dsl_destroy_snapshot_sync_impl()
419 dsl_dir_diduse_space(tx->tx_pool->dp_free_dir, in dsl_destroy_snapshot_sync_impl()
420 DD_USED_HEAD, used, comp, uncomp, tx); in dsl_destroy_snapshot_sync_impl()
424 dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_snapshot_sync_impl()
435 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_snapshot_sync_impl()
436 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
439 dsl_destroy_snapshot_handle_remaps(ds, ds_next, tx); in dsl_destroy_snapshot_sync_impl()
444 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
478 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
482 dsl_dataset_phys(ds)->ds_creation_txg, tx); in dsl_destroy_snapshot_sync_impl()
512 DD_USED_REFRSRV, -mrsdelta, 0, 0, tx); in dsl_destroy_snapshot_sync_impl()
543 VERIFY0(dsl_dataset_snap_remove(ds_head, ds->ds_snapname, tx, B_TRUE)); in dsl_destroy_snapshot_sync_impl()
549 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_snapshot_sync_impl()
557 dsl_dataset_phys(ds)->ds_next_clones_obj, tx)); in dsl_destroy_snapshot_sync_impl()
561 tx)); in dsl_destroy_snapshot_sync_impl()
564 tx)); in dsl_destroy_snapshot_sync_impl()
567 dmu_object_free_zapified(mos, obj, tx); in dsl_destroy_snapshot_sync_impl()
571 dsl_destroy_snapshot_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_snapshot_sync() argument
577 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_snapshot_sync()
584 dsl_destroy_snapshot_sync_impl(ds, defer, tx); in dsl_destroy_snapshot_sync()
708 dmu_tx_t *tx; member
717 dmu_tx_t *tx = ka->tx; in kill_blkptr() local
729 dsl_free(ka->tx->tx_pool, ka->tx->tx_txg, bp); in kill_blkptr()
734 (void) dsl_dataset_block_kill(ka->ds, bp, tx, B_FALSE); in kill_blkptr()
741 old_synchronous_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in old_synchronous_dataset_destroy() argument
745 spa_history_log_internal_ds(ds, "destroy", tx, in old_synchronous_dataset_destroy()
757 ka.tx = tx; in old_synchronous_dataset_destroy()
813 dsl_destroy_head_check(void *arg, dmu_tx_t *tx) in dsl_destroy_head_check() argument
816 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_check()
830 dsl_dir_destroy_sync(uint64_t ddobj, dmu_tx_t *tx) in dsl_dir_destroy_sync() argument
833 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dir_destroy_sync()
837 ASSERT(RRW_WRITE_HELD(&dmu_tx_pool(tx)->dp_config_rwlock)); in dsl_dir_destroy_sync()
846 DD_FIELD_FILESYSTEM_COUNT, tx); in dsl_dir_destroy_sync()
852 dsl_dir_set_reservation_sync_impl(dd, 0, tx); in dsl_dir_destroy_sync()
860 dsl_crypto_key_destroy_sync(dd->dd_crypto_obj, tx); in dsl_dir_destroy_sync()
864 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_child_dir_zapobj, tx)); in dsl_dir_destroy_sync()
865 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_props_zapobj, tx)); in dsl_dir_destroy_sync()
867 VERIFY0(zap_destroy(mos, dsl_dir_phys(dd)->dd_clones, tx)); in dsl_dir_destroy_sync()
868 VERIFY0(dsl_deleg_destroy(mos, dsl_dir_phys(dd)->dd_deleg_zapobj, tx)); in dsl_dir_destroy_sync()
871 dd->dd_myname, tx)); in dsl_dir_destroy_sync()
874 dmu_object_free_zapified(mos, ddobj, tx); in dsl_dir_destroy_sync()
903 dsl_async_clone_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_async_clone_destroy() argument
908 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_async_clone_destroy()
910 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_async_clone_destroy()
918 spa_history_log_internal_ds(ds, "destroy", tx, in dsl_async_clone_destroy()
925 zil_destroy_sync(dmu_objset_zil(os), tx); in dsl_async_clone_destroy()
934 DMU_OT_NONE, 0, tx); in dsl_async_clone_destroy()
937 &(zap_obj), tx)); in dsl_async_clone_destroy()
944 VERIFY0(zap_add_int(mos, zap_obj, to_delete, tx)); in dsl_async_clone_destroy()
950 tx); in dsl_async_clone_destroy()
952 used, comp, uncomp, tx); in dsl_async_clone_destroy()
953 dsl_dir_remove_livelist(dd, tx, B_FALSE); in dsl_async_clone_destroy()
962 dsl_async_dataset_destroy(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_async_dataset_destroy() argument
968 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_async_dataset_destroy()
971 spa_history_log_internal_ds(ds, "destroy", tx, in dsl_async_dataset_destroy()
975 zil_destroy_sync(dmu_objset_zil(os), tx); in dsl_async_dataset_destroy()
981 tx); in dsl_async_dataset_destroy()
982 dp->dp_bptree_obj = bptree_alloc(mos, tx); in dsl_async_dataset_destroy()
986 &dp->dp_bptree_obj, tx)); in dsl_async_dataset_destroy()
1002 used, comp, uncomp, tx); in dsl_async_dataset_destroy()
1005 -used, -comp, -uncomp, tx); in dsl_async_dataset_destroy()
1007 used, comp, uncomp, tx); in dsl_async_dataset_destroy()
1011 dsl_destroy_head_sync_impl(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_destroy_head_sync_impl() argument
1013 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_sync_impl()
1023 tx->tx_txg); in dsl_destroy_head_sync_impl()
1038 0, tx); in dsl_destroy_head_sync_impl()
1046 dsl_dataset_deactivate_feature(ds, f, tx); in dsl_destroy_head_sync_impl()
1049 dsl_scan_ds_destroyed(ds, tx); in dsl_destroy_head_sync_impl()
1058 dmu_buf_will_dirty(ds->ds_prev->ds_dbuf, tx); in dsl_destroy_head_sync_impl()
1061 obj, tx); in dsl_destroy_head_sync_impl()
1075 dsl_deadlist_free(mos, dsl_dataset_phys(ds)->ds_deadlist_obj, tx); in dsl_destroy_head_sync_impl()
1076 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_head_sync_impl()
1080 dsl_dataset_destroy_remap_deadlist(ds, tx); in dsl_destroy_head_sync_impl()
1088 dsl_async_clone_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1091 dsl_async_dataset_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1093 old_synchronous_dataset_destroy(ds, tx); in dsl_destroy_head_sync_impl()
1100 ds->ds_object, tx)); in dsl_destroy_head_sync_impl()
1117 dmu_buf_will_dirty(ds->ds_dir->dd_dbuf, tx); in dsl_destroy_head_sync_impl()
1122 dsl_dataset_phys(ds)->ds_snapnames_zapobj, tx)); in dsl_destroy_head_sync_impl()
1138 tx); in dsl_destroy_head_sync_impl()
1142 dbn->dbn_phys.zbm_redaction_obj, tx)); in dsl_destroy_head_sync_impl()
1144 SPA_FEATURE_REDACTION_BOOKMARKS, tx); in dsl_destroy_head_sync_impl()
1148 SPA_FEATURE_BOOKMARK_WRITTEN, tx); in dsl_destroy_head_sync_impl()
1155 VERIFY0(zap_destroy(mos, ds->ds_bookmarks_obj, tx)); in dsl_destroy_head_sync_impl()
1156 spa_feature_decr(dp->dp_spa, SPA_FEATURE_BOOKMARKS, tx); in dsl_destroy_head_sync_impl()
1159 spa_prop_clear_bootfs(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_head_sync_impl()
1166 dmu_object_free_zapified(mos, obj, tx); in dsl_destroy_head_sync_impl()
1168 dsl_dir_destroy_sync(ddobj, tx); in dsl_destroy_head_sync_impl()
1173 dsl_destroy_snapshot_sync_impl(prev, B_FALSE, tx); in dsl_destroy_head_sync_impl()
1178 spa_delete_dataset_errlog(dp->dp_spa, ds->ds_object, tx); in dsl_destroy_head_sync_impl()
1182 dsl_destroy_head_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_head_sync() argument
1185 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_sync()
1189 dsl_destroy_head_sync_impl(ds, tx); in dsl_destroy_head_sync()
1195 dsl_destroy_head_begin_sync(void *arg, dmu_tx_t *tx) in dsl_destroy_head_begin_sync() argument
1198 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_destroy_head_begin_sync()
1204 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_destroy_head_begin_sync()
1207 spa_history_log_internal_ds(ds, "destroy begin", tx, " "); in dsl_destroy_head_begin_sync()