Lines Matching full:tx

104     uint64_t obj, dmu_tx_t *tx);
106 dmu_tx_t *tx);
137 dsl_dataset_block_born(dsl_dataset_t *ds, const blkptr_t *bp, dmu_tx_t *tx) in dsl_dataset_block_born() argument
139 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_dataset_block_born()
148 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_block_born()
155 dsl_pool_mos_diduse_space(tx->tx_pool, in dsl_dataset_block_born()
162 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_block_born()
206 DD_USED_REFRSRV, DD_USED_HEAD, tx); in dsl_dataset_block_born()
218 uint64_t size, uint64_t birth, dmu_tx_t *tx) in dsl_dataset_block_remapped() argument
222 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_block_remapped()
223 ASSERT(birth <= tx->tx_txg); in dsl_dataset_block_remapped()
227 spa_vdev_indirect_mark_obsolete(spa, vdev, offset, size, tx); in dsl_dataset_block_remapped()
236 dsl_dataset_create_remap_deadlist(ds, tx); in dsl_dataset_block_remapped()
246 tx); in dsl_dataset_block_remapped()
251 dsl_dataset_block_kill(dsl_dataset_t *ds, const blkptr_t *bp, dmu_tx_t *tx, in dsl_dataset_block_kill() argument
254 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_dataset_block_kill()
263 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_block_kill()
264 ASSERT(BP_GET_LOGICAL_BIRTH(bp) <= tx->tx_txg); in dsl_dataset_block_kill()
267 dsl_free(tx->tx_pool, tx->tx_txg, bp); in dsl_dataset_block_kill()
268 dsl_pool_mos_diduse_space(tx->tx_pool, in dsl_dataset_block_kill()
272 ASSERT3P(tx->tx_pool, ==, ds->ds_dir->dd_pool); in dsl_dataset_block_kill()
275 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_block_kill()
307 bp, B_FALSE, tx); in dsl_dataset_block_kill()
311 dsl_free(tx->tx_pool, tx->tx_txg, bp); in dsl_dataset_block_kill()
323 DD_USED_REFRSRV, DD_USED_HEAD, tx); in dsl_dataset_block_kill()
326 dsl_dir_diduse_space(tx->tx_pool->dp_free_dir, in dsl_dataset_block_kill()
327 DD_USED_HEAD, used, compressed, uncompressed, tx); in dsl_dataset_block_kill()
340 dsl_deadlist_insert(&ds->ds_deadlist, bp, B_FALSE, tx); in dsl_dataset_block_kill()
349 dmu_buf_will_dirty(ds->ds_prev->ds_dbuf, tx); in dsl_dataset_block_kill()
356 DD_USED_HEAD, DD_USED_SNAP, tx); in dsl_dataset_block_kill()
360 dsl_bookmark_block_killed(ds, bp, tx); in dsl_dataset_block_kill()
552 dsl_dataset_snap_remove(dsl_dataset_t *ds, const char *name, dmu_tx_t *tx, in dsl_dataset_snap_remove() argument
560 dsl_dir_snap_cmtime_update(ds->ds_dir, tx); in dsl_dataset_snap_remove()
565 err = zap_remove_norm(mos, snapobj, name, mt, tx); in dsl_dataset_snap_remove()
567 err = zap_remove(mos, snapobj, name, tx); in dsl_dataset_snap_remove()
571 DD_FIELD_SNAPSHOT_COUNT, tx); in dsl_dataset_snap_remove()
1121 dmu_tx_t *tx) in dsl_dataset_activate_feature() argument
1123 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_dataset_activate_feature()
1124 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; in dsl_dataset_activate_feature()
1129 spa_feature_incr(spa, f, tx); in dsl_dataset_activate_feature()
1130 dmu_object_zapify(mos, dsobj, DMU_OT_DSL_DATASET, tx); in dsl_dataset_activate_feature()
1136 sizeof (zero), 1, &zero, tx)); in dsl_dataset_activate_feature()
1142 sizeof (uint64_t), ftuaa->length, ftuaa->array, tx)); in dsl_dataset_activate_feature()
1152 dmu_tx_t *tx) in dsl_dataset_deactivate_feature_impl() argument
1154 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in dsl_dataset_deactivate_feature_impl()
1155 objset_t *mos = dmu_tx_pool(tx)->dp_meta_objset; in dsl_dataset_deactivate_feature_impl()
1160 VERIFY0(zap_remove(mos, dsobj, spa_feature_table[f].fi_guid, tx)); in dsl_dataset_deactivate_feature_impl()
1161 spa_feature_decr(spa, f, tx); in dsl_dataset_deactivate_feature_impl()
1166 dsl_dataset_deactivate_feature(dsl_dataset_t *ds, spa_feature_t f, dmu_tx_t *tx) in dsl_dataset_deactivate_feature() argument
1169 dsl_dataset_deactivate_feature_impl(ds, f, tx); in dsl_dataset_deactivate_feature()
1174 dsl_crypto_params_t *dcp, uint64_t flags, dmu_tx_t *tx) in dsl_dataset_create_sync_dd() argument
1187 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_create_sync_dd()
1191 DMU_OT_DSL_DATASET, sizeof (dsl_dataset_phys_t), tx); in dsl_dataset_create_sync_dd()
1193 dmu_buf_will_dirty(dbuf, tx); in dsl_dataset_create_sync_dd()
1203 DMU_OT_NONE, 0, tx); in dsl_dataset_create_sync_dd()
1205 dsphys->ds_creation_txg = tx->tx_txg == TXG_INITIAL ? 1 : tx->tx_txg; in dsl_dataset_create_sync_dd()
1208 dsphys->ds_deadlist_obj = dsl_deadlist_alloc(mos, tx); in dsl_dataset_create_sync_dd()
1235 origin->ds_feature[f], tx); in dsl_dataset_create_sync_dd()
1239 dmu_buf_will_dirty(origin->ds_dbuf, tx); in dsl_dataset_create_sync_dd()
1246 dsphys->ds_prev_snap_txg, dsphys->ds_prev_snap_obj, tx); in dsl_dataset_create_sync_dd()
1253 DMU_OT_NEXT_CLONES, DMU_OT_NONE, 0, tx); in dsl_dataset_create_sync_dd()
1257 dsobj, tx)); in dsl_dataset_create_sync_dd()
1260 dmu_buf_will_dirty(dd->dd_dbuf, tx); in dsl_dataset_create_sync_dd()
1264 dmu_buf_will_dirty(origin->ds_dir->dd_dbuf, tx); in dsl_dataset_create_sync_dd()
1267 DMU_OT_DSL_CLONES, DMU_OT_NONE, 0, tx); in dsl_dataset_create_sync_dd()
1271 dsobj, tx)); in dsl_dataset_create_sync_dd()
1276 dsl_dataset_create_crypt_sync(dsobj, dd, origin, dcp, tx); in dsl_dataset_create_sync_dd()
1283 dmu_buf_will_dirty(dd->dd_dbuf, tx); in dsl_dataset_create_sync_dd()
1290 dsl_dataset_zero_zil(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_zero_zil() argument
1301 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in dsl_dataset_zero_zil()
1304 dsl_dataset_sync(ds, zio, tx); in dsl_dataset_zero_zil()
1306 dsl_dataset_sync_done(ds, tx); in dsl_dataset_zero_zil()
1313 dsl_crypto_params_t *dcp, dmu_tx_t *tx) in dsl_dataset_create_sync() argument
1319 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_create_sync()
1330 ddobj = dsl_dir_create_sync(dp, pdd, lastname, tx); in dsl_dataset_create_sync()
1334 flags & ~DS_CREATE_FLAG_NODIRTY, tx); in dsl_dataset_create_sync()
1336 dsl_deleg_set_create_perms(dd, tx, cr); in dsl_dataset_create_sync()
1345 dsl_dir_zapify(dd, tx); in dsl_dataset_create_sync()
1346 uint64_t obj = dsl_deadlist_alloc(mos, tx); in dsl_dataset_create_sync()
1348 sizeof (uint64_t), 1, &obj, tx)); in dsl_dataset_create_sync()
1349 spa_feature_incr(dp->dp_spa, SPA_FEATURE_LIVELIST, tx); in dsl_dataset_create_sync()
1360 dsl_dir_zapify(dd, tx); in dsl_dataset_create_sync()
1362 sizeof (cnt), 1, &cnt, tx)); in dsl_dataset_create_sync()
1364 sizeof (cnt), 1, &cnt, tx)); in dsl_dataset_create_sync()
1377 dsl_dataset_zero_zil(ds, tx); in dsl_dataset_create_sync()
1418 dmu_tx_t *tx) in dsl_dataset_remove_from_next_clones() argument
1426 obj, tx); in dsl_dataset_remove_from_next_clones()
1458 dsl_dataset_dirty(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_dirty() argument
1471 ASSERT3U(tx->tx_txg, >, dsl_dataset_phys(ds)->ds_prev_snap_txg); in dsl_dataset_dirty()
1474 if (txg_list_add(&dp->dp_dirty_datasets, ds, tx->tx_txg)) { in dsl_dataset_dirty()
1483 !os->os_next_write_raw[tx->tx_txg & TXG_MASK]) { in dsl_dataset_dirty()
1491 dsl_dataset_snapshot_reserve_space(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_snapshot_reserve_space() argument
1495 if (!dmu_tx_is_syncing(tx)) in dsl_dataset_snapshot_reserve_space()
1513 dsl_dir_willuse_space(ds->ds_dir, asize, tx); in dsl_dataset_snapshot_reserve_space()
1520 dmu_tx_t *tx, boolean_t recv, uint64_t cnt, cred_t *cr, proc_t *proc) in dsl_dataset_snapshot_check_impl() argument
1525 ds->ds_trysnap_txg = tx->tx_txg; in dsl_dataset_snapshot_check_impl()
1527 if (!dmu_tx_is_syncing(tx)) in dsl_dataset_snapshot_check_impl()
1534 if (dsl_dataset_phys(ds)->ds_prev_snap_txg >= tx->tx_txg) in dsl_dataset_snapshot_check_impl()
1570 error = dsl_dataset_snapshot_reserve_space(ds, tx); in dsl_dataset_snapshot_check_impl()
1578 dsl_dataset_snapshot_check(void *arg, dmu_tx_t *tx) in dsl_dataset_snapshot_check() argument
1581 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_snapshot_check()
1611 if (dmu_tx_is_syncing(tx)) { in dsl_dataset_snapshot_check()
1704 atp + 1, tx, B_FALSE, 0, NULL, NULL); in dsl_dataset_snapshot_check()
1722 dmu_tx_t *tx) in dsl_dataset_snapshot_sync_impl() argument
1737 ASSERT(spa_version(dmu_tx_pool(tx)->dp_spa) >= SPA_VERSION_FAST_SNAP || in dsl_dataset_snapshot_sync_impl()
1744 ds, tx->tx_txg)); in dsl_dataset_snapshot_sync_impl()
1746 dsl_fs_ss_count_adjust(ds->ds_dir, 1, DD_FIELD_SNAPSHOT_COUNT, tx); in dsl_dataset_snapshot_sync_impl()
1754 crtxg = tx->tx_txg; in dsl_dataset_snapshot_sync_impl()
1757 DMU_OT_DSL_DATASET, sizeof (dsl_dataset_phys_t), tx); in dsl_dataset_snapshot_sync_impl()
1759 dmu_buf_will_dirty(dbuf, tx); in dsl_dataset_snapshot_sync_impl()
1786 ds->ds_feature[f], tx); in dsl_dataset_snapshot_sync_impl()
1800 dmu_buf_will_dirty(ds->ds_prev->ds_dbuf, tx); in dsl_dataset_snapshot_sync_impl()
1806 dsphys->ds_next_snap_obj, tx); in dsl_dataset_snapshot_sync_impl()
1808 next_clones_obj, dsobj, tx)); in dsl_dataset_snapshot_sync_impl()
1823 delta, 0, 0, tx); in dsl_dataset_snapshot_sync_impl()
1826 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_snapshot_sync_impl()
1829 dsl_dataset_phys(ds)->ds_prev_snap_obj, tx); in dsl_dataset_snapshot_sync_impl()
1834 dsl_dataset_phys(ds)->ds_prev_snap_txg, tx); in dsl_dataset_snapshot_sync_impl()
1835 dsl_bookmark_snapshotted(ds, tx); in dsl_dataset_snapshot_sync_impl()
1845 dsl_dataset_unset_remap_deadlist_object(ds, tx); in dsl_dataset_snapshot_sync_impl()
1848 dmu_object_zapify(mos, dsobj, DMU_OT_DSL_DATASET, tx); in dsl_dataset_snapshot_sync_impl()
1850 sizeof (remap_deadlist_obj), 1, &remap_deadlist_obj, tx)); in dsl_dataset_snapshot_sync_impl()
1872 dmu_object_zapify(mos, dsobj, DMU_OT_DSL_DATASET, tx); in dsl_dataset_snapshot_sync_impl()
1874 sizeof (ivset_guid), 1, &ivset_guid, tx)); in dsl_dataset_snapshot_sync_impl()
1877 ASSERT3U(dsl_dataset_phys(ds)->ds_prev_snap_txg, <, tx->tx_txg); in dsl_dataset_snapshot_sync_impl()
1886 snapname, 8, 1, &dsobj, tx)); in dsl_dataset_snapshot_sync_impl()
1893 dsl_scan_ds_snapshotted(ds, tx); in dsl_dataset_snapshot_sync_impl()
1895 dsl_dir_snap_cmtime_update(ds->ds_dir, tx); in dsl_dataset_snapshot_sync_impl()
1898 spa_history_log_internal_ds(ds->ds_prev, "snapshot", tx, " "); in dsl_dataset_snapshot_sync_impl()
1902 dsl_dataset_snapshot_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_snapshot_sync() argument
1905 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_snapshot_sync()
1919 dsl_dataset_snapshot_sync_impl(ds, atp + 1, tx); in dsl_dataset_snapshot_sync()
1922 ZPROP_SRC_LOCAL, ddsa->ddsa_props, tx); in dsl_dataset_snapshot_sync()
2017 dsl_dataset_snapshot_tmp_check(void *arg, dmu_tx_t *tx) in dsl_dataset_snapshot_tmp_check() argument
2020 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_snapshot_tmp_check()
2030 tx, B_FALSE, 0, NULL, NULL); in dsl_dataset_snapshot_tmp_check()
2041 B_TRUE, tx); in dsl_dataset_snapshot_tmp_check()
2052 dsl_dataset_snapshot_tmp_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_snapshot_tmp_sync() argument
2055 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_snapshot_tmp_sync()
2060 dsl_dataset_snapshot_sync_impl(ds, ddsta->ddsta_snapname, tx); in dsl_dataset_snapshot_tmp_sync()
2062 ddsta->ddsta_cleanup_minor, gethrestime_sec(), tx); in dsl_dataset_snapshot_tmp_sync()
2063 dsl_destroy_snapshot_sync_impl(ds->ds_prev, B_TRUE, tx); in dsl_dataset_snapshot_tmp_sync()
2105 dsl_dataset_sync(dsl_dataset_t *ds, zio_t *rio, dmu_tx_t *tx) in dsl_dataset_sync() argument
2107 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_sync()
2115 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_sync()
2118 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync()
2119 VERIFY0(zap_update(tx->tx_pool->dp_meta_objset, in dsl_dataset_sync()
2121 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2122 VERIFY0(zap_update(tx->tx_pool->dp_meta_objset, in dsl_dataset_sync()
2124 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2125 VERIFY0(zap_update(tx->tx_pool->dp_meta_objset, in dsl_dataset_sync()
2127 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2128 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2129 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2130 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2133 dmu_objset_sync(ds->ds_objset, rio, tx); in dsl_dataset_sync()
2235 dsl_flush_pending_livelist(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_flush_pending_livelist() argument
2245 tx->tx_txg - 1, tx); in dsl_flush_pending_livelist()
2260 tx->tx_txg - 1, tx); in dsl_flush_pending_livelist()
2266 dsl_deadlist_insert_alloc_cb, &dd->dd_livelist, tx); in dsl_flush_pending_livelist()
2268 dsl_deadlist_insert_free_cb, &dd->dd_livelist, tx); in dsl_flush_pending_livelist()
2280 dsl_dataset_sync_done(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_sync_done() argument
2285 dsl_deadlist_insert_alloc_cb, &ds->ds_deadlist, tx); in dsl_dataset_sync_done()
2288 dsl_flush_pending_livelist(ds, tx); in dsl_dataset_sync_done()
2290 dsl_dir_remove_livelist(ds->ds_dir, tx, B_TRUE); in dsl_dataset_sync_done()
2294 dsl_bookmark_sync_done(ds, tx); in dsl_dataset_sync_done()
2299 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_FALSE; in dsl_dataset_sync_done()
2301 ASSERT0(os->os_next_write_raw[tx->tx_txg & TXG_MASK]); in dsl_dataset_sync_done()
2309 ds->ds_feature_activation[f], tx); in dsl_dataset_sync_done()
2314 ASSERT(!dmu_objset_is_dirty(os, dmu_tx_get_txg(tx))); in dsl_dataset_sync_done()
2989 dsl_dataset_rename_snapshot_check(void *arg, dmu_tx_t *tx) in dsl_dataset_rename_snapshot_check() argument
2992 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_rename_snapshot_check()
3018 dmu_tx_t *tx = ddrsa->ddrsa_tx; in dsl_dataset_rename_snapshot_sync_impl() local
3032 spa_history_log_internal_ds(ds, "rename", tx, in dsl_dataset_rename_snapshot_sync_impl()
3035 VERIFY0(dsl_dataset_snap_remove(hds, ddrsa->ddrsa_oldsnapname, tx, in dsl_dataset_rename_snapshot_sync_impl()
3043 ds->ds_snapname, 8, 1, &ds->ds_object, tx)); in dsl_dataset_rename_snapshot_sync_impl()
3058 dsl_dataset_rename_snapshot_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_rename_snapshot_sync() argument
3061 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_rename_snapshot_sync()
3065 ddrsa->ddrsa_tx = tx; in dsl_dataset_rename_snapshot_sync()
3100 dsl_dataset_handoff_check(dsl_dataset_t *ds, void *owner, dmu_tx_t *tx) in dsl_dataset_handoff_check() argument
3104 if (!dmu_tx_is_syncing(tx)) in dsl_dataset_handoff_check()
3130 dsl_dataset_rollback_check(void *arg, dmu_tx_t *tx) in dsl_dataset_rollback_check() argument
3133 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_rollback_check()
3160 if (dmu_tx_is_syncing(tx) && in dsl_dataset_rollback_check()
3161 dsl_dataset_phys(ds)->ds_prev_snap_txg >= tx->tx_txg) { in dsl_dataset_rollback_check()
3220 error = dsl_dataset_handoff_check(ds, ddra->ddra_owner, tx); in dsl_dataset_rollback_check()
3258 dsl_dataset_rollback_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_rollback_sync() argument
3261 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_rollback_sync()
3272 ds->ds_prev, DS_CREATE_FLAG_NODIRTY, kcred, NULL, tx); in dsl_dataset_rollback_sync()
3276 dsl_dataset_clone_swap_sync_impl(clone, ds, tx); in dsl_dataset_rollback_sync()
3277 dsl_dataset_zero_zil(ds, tx); in dsl_dataset_rollback_sync()
3279 dsl_destroy_head_sync_impl(clone, tx); in dsl_dataset_rollback_sync()
3325 dsl_dataset_promote_check(void *arg, dmu_tx_t *tx) in dsl_dataset_promote_check() argument
3328 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_promote_check()
3370 if (!dmu_tx_is_syncing(tx)) { in dsl_dataset_promote_check()
3549 dsl_dataset_promote_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_promote_sync() argument
3552 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_promote_sync()
3583 dsl_dataset_promote_crypt_sync(hds->ds_dir, odd, tx); in dsl_dataset_promote_sync()
3586 dmu_buf_will_dirty(origin_ds->ds_dbuf, tx); in dsl_dataset_promote_sync()
3596 snap->ds->ds_object, tx); in dsl_dataset_promote_sync()
3599 oldnext_obj, tx)); in dsl_dataset_promote_sync()
3603 dmu_buf_will_dirty(dd->dd_dbuf, tx); in dsl_dataset_promote_sync()
3607 dmu_buf_will_dirty(odd->dd_dbuf, tx); in dsl_dataset_promote_sync()
3615 dsl_dir_phys(odd)->dd_clones, hds->ds_object, tx)); in dsl_dataset_promote_sync()
3618 hds->ds_object, tx)); in dsl_dataset_promote_sync()
3622 origin_head->ds_object, tx)); in dsl_dataset_promote_sync()
3626 DMU_OT_NONE, 0, tx); in dsl_dataset_promote_sync()
3629 dsl_dir_phys(dd)->dd_clones, origin_head->ds_object, tx)); in dsl_dataset_promote_sync()
3644 origin_head->ds_bookmarks_obj, dbn->dbn_name, tx)); in dsl_dataset_promote_sync()
3646 dsl_bookmark_node_add(hds, dbn, tx); in dsl_dataset_promote_sync()
3649 dsl_bookmark_next_changed(hds, origin_ds, tx); in dsl_dataset_promote_sync()
3669 ds->ds_snapname, tx, B_TRUE)); in dsl_dataset_promote_sync()
3672 8, 1, &ds->ds_object, tx)); in dsl_dataset_promote_sync()
3674 DD_FIELD_SNAPSHOT_COUNT, tx); in dsl_dataset_promote_sync()
3677 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_promote_sync()
3712 dsl_dir_phys(odd)->dd_clones, o, tx)); in dsl_dataset_promote_sync()
3714 dsl_dir_phys(dd)->dd_clones, o, tx)); in dsl_dataset_promote_sync()
3735 dsl_dir_diduse_space(dd, DD_USED_SNAP, delta, 0, 0, tx); in dsl_dataset_promote_sync()
3737 ddpa->used - delta, ddpa->comp, ddpa->uncomp, tx); in dsl_dataset_promote_sync()
3743 dsl_dir_diduse_space(odd, DD_USED_SNAP, delta, 0, 0, tx); in dsl_dataset_promote_sync()
3745 -ddpa->used - delta, -ddpa->comp, -ddpa->uncomp, tx); in dsl_dataset_promote_sync()
3755 dsl_dir_remove_livelist(dd, tx, B_TRUE); in dsl_dataset_promote_sync()
3756 dsl_dir_remove_livelist(odd, tx, B_TRUE); in dsl_dataset_promote_sync()
3759 spa_history_log_internal_ds(hds, "promote", tx, " "); in dsl_dataset_promote_sync()
3771 spa_swap_errlog(dp->dp_spa, new_head, old_head, tx); in dsl_dataset_promote_sync()
3957 dsl_dataset_t *origin_head, boolean_t force, void *owner, dmu_tx_t *tx) in dsl_dataset_clone_swap_check_impl() argument
3992 if (dsl_dataset_handoff_check(origin_head, owner, tx)) in dsl_dataset_clone_swap_check_impl()
4030 dsl_dataset_t *origin, dmu_tx_t *tx) in dsl_dataset_swap_remap_deadlists() argument
4033 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_swap_remap_deadlists()
4042 dsl_dataset_unset_remap_deadlist_object(clone, tx); in dsl_dataset_swap_remap_deadlists()
4046 dsl_dataset_unset_remap_deadlist_object(origin, tx); in dsl_dataset_swap_remap_deadlists()
4051 clone_remap_dl_obj, tx); in dsl_dataset_swap_remap_deadlists()
4057 origin_remap_dl_obj, tx); in dsl_dataset_swap_remap_deadlists()
4065 dsl_dataset_t *origin_head, dmu_tx_t *tx) in dsl_dataset_clone_swap_sync_impl() argument
4067 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_clone_swap_sync_impl()
4100 dsl_dataset_deactivate_feature_impl(clone, f, tx); in dsl_dataset_clone_swap_sync_impl()
4102 dsl_dataset_deactivate_feature_impl(origin_head, f, tx); in dsl_dataset_clone_swap_sync_impl()
4106 clone_feature, tx); in dsl_dataset_clone_swap_sync_impl()
4111 origin_head_feature, tx); in dsl_dataset_clone_swap_sync_impl()
4116 dmu_buf_will_dirty(clone->ds_dbuf, tx); in dsl_dataset_clone_swap_sync_impl()
4117 dmu_buf_will_dirty(origin_head->ds_dbuf, tx); in dsl_dataset_clone_swap_sync_impl()
4142 dmu_buf_will_dirty(origin->ds_dbuf, tx); in dsl_dataset_clone_swap_sync_impl()
4189 dused, dcomp, duncomp, tx); in dsl_dataset_clone_swap_sync_impl()
4191 -dused, -dcomp, -duncomp, tx); in dsl_dataset_clone_swap_sync_impl()
4206 DD_USED_HEAD, DD_USED_SNAP, tx); in dsl_dataset_clone_swap_sync_impl()
4221 unused_refres_delta, 0, 0, tx); in dsl_dataset_clone_swap_sync_impl()
4234 dsl_dataset_swap_remap_deadlists(clone, origin_head, tx); in dsl_dataset_clone_swap_sync_impl()
4240 dsl_bookmark_next_changed(origin_head, origin_head->ds_prev, tx); in dsl_dataset_clone_swap_sync_impl()
4242 dsl_scan_ds_clone_swapped(origin_head, clone, tx); in dsl_dataset_clone_swap_sync_impl()
4249 dsl_dir_remove_livelist(clone->ds_dir, tx, B_TRUE); in dsl_dataset_clone_swap_sync_impl()
4250 dsl_dir_remove_livelist(origin_head->ds_dir, tx, B_TRUE); in dsl_dataset_clone_swap_sync_impl()
4252 spa_history_log_internal_ds(clone, "clone swap", tx, in dsl_dataset_clone_swap_sync_impl()
4339 dsl_dataset_set_refquota_check(void *arg, dmu_tx_t *tx) in dsl_dataset_set_refquota_check() argument
4342 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_refquota_check()
4383 dsl_dataset_set_refquota_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_set_refquota_sync() argument
4386 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_refquota_sync()
4395 &ddsqra->ddsqra_value, tx); in dsl_dataset_set_refquota_sync()
4401 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_set_refquota_sync()
4423 dsl_dataset_set_refreservation_check(void *arg, dmu_tx_t *tx) in dsl_dataset_set_refreservation_check() argument
4426 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_refreservation_check()
4455 if (!dmu_tx_is_syncing(tx)) { in dsl_dataset_set_refreservation_check()
4484 zprop_source_t source, uint64_t value, dmu_tx_t *tx) in dsl_dataset_set_refreservation_sync_impl() argument
4491 source, sizeof (value), 1, &value, tx); in dsl_dataset_set_refreservation_sync_impl()
4496 dmu_buf_will_dirty(ds->ds_dbuf, tx); in dsl_dataset_set_refreservation_sync_impl()
4506 dsl_dir_diduse_space(ds->ds_dir, DD_USED_REFRSRV, delta, 0, 0, tx); in dsl_dataset_set_refreservation_sync_impl()
4511 dsl_dataset_set_refreservation_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_set_refreservation_sync() argument
4514 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_refreservation_sync()
4519 ddsqra->ddsqra_source, ddsqra->ddsqra_value, tx); in dsl_dataset_set_refreservation_sync()
4545 dsl_dataset_set_compression_check(void *arg, dmu_tx_t *tx) in dsl_dataset_set_compression_check() argument
4548 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_compression_check()
4563 dsl_dataset_set_compression_sync(void *arg, dmu_tx_t *tx) in dsl_dataset_set_compression_sync() argument
4566 dsl_pool_t *dp = dmu_tx_pool(tx); in dsl_dataset_set_compression_sync()
4578 ds->ds_feature_activation[f], tx); in dsl_dataset_set_compression_sync()
4862 dsl_dataset_zapify(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_zapify() argument
4865 dmu_object_zapify(mos, ds->ds_object, DMU_OT_DSL_DATASET, tx); in dsl_dataset_zapify()
4917 dmu_tx_t *tx) in dsl_dataset_set_remap_deadlist_object() argument
4920 dsl_dataset_zapify(ds, tx); in dsl_dataset_set_remap_deadlist_object()
4922 DS_FIELD_REMAP_DEADLIST, sizeof (obj), 1, &obj, tx)); in dsl_dataset_set_remap_deadlist_object()
4926 dsl_dataset_unset_remap_deadlist_object(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_unset_remap_deadlist_object() argument
4929 ds->ds_object, DS_FIELD_REMAP_DEADLIST, tx)); in dsl_dataset_unset_remap_deadlist_object()
4933 dsl_dataset_destroy_remap_deadlist(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_destroy_remap_deadlist() argument
4938 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_destroy_remap_deadlist()
4943 dsl_deadlist_free(spa_meta_objset(spa), remap_deadlist_object, tx); in dsl_dataset_destroy_remap_deadlist()
4944 dsl_dataset_unset_remap_deadlist_object(ds, tx); in dsl_dataset_destroy_remap_deadlist()
4945 spa_feature_decr(spa, SPA_FEATURE_OBSOLETE_COUNTS, tx); in dsl_dataset_destroy_remap_deadlist()
4949 dsl_dataset_create_remap_deadlist(dsl_dataset_t *ds, dmu_tx_t *tx) in dsl_dataset_create_remap_deadlist() argument
4954 ASSERT(dmu_tx_is_syncing(tx)); in dsl_dataset_create_remap_deadlist()
4964 dsl_dataset_phys(ds)->ds_prev_snap_obj, tx); in dsl_dataset_create_remap_deadlist()
4966 remap_deadlist_obj, tx); in dsl_dataset_create_remap_deadlist()
4969 spa_feature_incr(spa, SPA_FEATURE_OBSOLETE_COUNTS, tx); in dsl_dataset_create_remap_deadlist()
4974 uint64_t num_redact_snaps, dmu_tx_t *tx) in dsl_dataset_activate_redaction() argument
4987 ftuaa, tx); in dsl_dataset_activate_redaction()