Lines Matching refs:tx

142  * zvol maximum transfer in one DMU tx.
336 zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx)
359 DMU_OT_NONE, 0, tx);
363 DMU_OT_NONE, 0, tx);
366 error = zap_update(os, ZVOL_ZAP_OBJ, "size", 8, 1, &volsize, tx);
398 dmu_tx_t *tx;
416 tx = dmu_tx_create(os);
417 dmu_tx_hold_write(tx, ZVOL_OBJ, offset, length);
418 error = dmu_tx_assign(tx, TXG_WAIT);
420 dmu_tx_abort(tx);
422 dmu_write(os, ZVOL_OBJ, offset, length, data, tx);
423 dmu_tx_commit(tx);
687 dmu_tx_t *tx;
704 tx = dmu_tx_create(os);
705 dmu_tx_hold_write(tx, ZVOL_OBJ, off, bytes);
706 error = dmu_tx_assign(tx, TXG_WAIT);
708 dmu_tx_abort(tx);
712 dmu_prealloc(os, ZVOL_OBJ, off, bytes, tx);
713 dmu_tx_commit(tx);
725 dmu_tx_t *tx;
730 tx = dmu_tx_create(os);
731 dmu_tx_hold_zap(tx, ZVOL_ZAP_OBJ, TRUE, NULL);
732 dmu_tx_mark_netfree(tx);
733 error = dmu_tx_assign(tx, TXG_WAIT);
735 dmu_tx_abort(tx);
740 &volsize, tx);
741 dmu_tx_commit(tx);
1056 zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid,
1064 if (zil_replaying(zilog, tx))
1118 zil_itx_assign(zilog, itx, tx);
1296 dmu_tx_t *tx = dmu_tx_create(os);
1297 dmu_tx_hold_write(tx, ZVOL_OBJ, off, size);
1298 error = dmu_tx_assign(tx, TXG_WAIT);
1300 dmu_tx_abort(tx);
1302 dmu_write(os, ZVOL_OBJ, off, size, addr, tx);
1303 zvol_log_write(zv, tx, off, size, sync);
1304 dmu_tx_commit(tx);
1459 dmu_tx_t *tx = dmu_tx_create(zv->zv_objset);
1464 dmu_tx_hold_write(tx, ZVOL_OBJ, off, bytes);
1465 error = dmu_tx_assign(tx, TXG_WAIT);
1467 dmu_tx_abort(tx);
1470 error = dmu_write_uio_dbuf(zv->zv_dbuf, uio, bytes, tx);
1472 zvol_log_write(zv, tx, off, bytes, sync);
1473 dmu_tx_commit(tx);
1602 zvol_log_write_minor(void *minor_hdl, dmu_tx_t *tx, offset_t off, ssize_t resid,
1607 zvol_log_write(zv, tx, off, resid, sync);
1617 zvol_log_truncate(zvol_state_t *zv, dmu_tx_t *tx, uint64_t off, uint64_t len,
1624 if (zil_replaying(zilog, tx))
1634 zil_itx_assign(zilog, itx, tx);
1783 dmu_tx_t *tx;
1805 tx = dmu_tx_create(zv->zv_objset);
1806 dmu_tx_mark_netfree(tx);
1807 error = dmu_tx_assign(tx, TXG_WAIT);
1809 dmu_tx_abort(tx);
1811 zvol_log_truncate(zv, tx, df.df_start,
1813 dmu_tx_commit(tx);
1870 zfs_mvdev_dump_feature_check(void *arg, dmu_tx_t *tx)
1872 spa_t *spa = dmu_tx_pool(tx)->dp_spa;
1881 zfs_mvdev_dump_activate_feature_sync(void *arg, dmu_tx_t *tx)
1883 spa_t *spa = dmu_tx_pool(tx)->dp_spa;
1885 spa_feature_incr(spa, SPA_FEATURE_MULTI_VDEV_CRASH_DUMP, tx);
1891 dmu_tx_t *tx;
1956 tx = dmu_tx_create(os);
1957 dmu_tx_hold_zap(tx, ZVOL_ZAP_OBJ, TRUE, NULL);
1958 dmu_tx_hold_bonus(tx, ZVOL_OBJ);
1959 error = dmu_tx_assign(tx, TXG_WAIT);
1961 dmu_tx_abort(tx);
1974 &zv->zv_volsize, tx);
1978 &compress, tx);
1982 &checksum, tx);
1987 &refresrv, tx);
1992 &vbs, tx);
1996 os, ZVOL_OBJ, SPA_OLD_MAXBLOCKSIZE, 0, tx);
2001 &dedup, tx);
2006 dmu_tx_commit(tx);
2052 dmu_tx_t *tx;
2077 tx = dmu_tx_create(os);
2078 dmu_tx_hold_zap(tx, ZVOL_ZAP_OBJ, TRUE, NULL);
2079 error = dmu_tx_assign(tx, TXG_WAIT);
2081 dmu_tx_abort(tx);
2088 &zv->zv_volsize, tx);
2089 dmu_tx_commit(tx);
2103 dmu_tx_t *tx;
2117 tx = dmu_tx_create(os);
2118 dmu_tx_hold_zap(tx, ZVOL_ZAP_OBJ, TRUE, NULL);
2119 error = dmu_tx_assign(tx, TXG_WAIT);
2121 dmu_tx_abort(tx);
2124 (void) zap_remove(os, ZVOL_ZAP_OBJ, ZVOL_DUMPSIZE, tx);
2125 dmu_tx_commit(tx);
2158 tx = dmu_tx_create(os);
2159 dmu_tx_hold_bonus(tx, ZVOL_OBJ);
2160 error = dmu_tx_assign(tx, TXG_WAIT);
2162 dmu_tx_abort(tx);
2165 if (dmu_object_set_blocksize(os, ZVOL_OBJ, vbs, 0, tx) == 0)
2167 dmu_tx_commit(tx);