Lines Matching refs:tx
85 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx)
94 sizeof (spa_history_phys_t), tx);
98 &spa->spa_history, tx) == 0);
104 dmu_buf_will_dirty(dbp, tx);
150 dmu_tx_t *tx)
169 dmu_write(mos, spa->spa_history, phys_eof, firstwrite, buf, tx);
175 len, (char *)buf + firstwrite, tx);
197 spa_history_log_sync(void *arg, dmu_tx_t *tx)
200 spa_t *spa = dmu_tx_pool(tx)->dp_spa;
215 spa_history_create_obj(spa, tx);
225 dmu_buf_will_dirty(dbp, tx);
267 ret = spa_history_write(spa, &le_len, sizeof (le_len), shpp, tx);
269 ret = spa_history_write(spa, record_packed, reclen, shpp, tx);
302 dmu_tx_t *tx;
311 tx = dmu_tx_create_dd(spa_get_dsl(spa)->dp_mos_dir);
312 err = dmu_tx_assign(tx, TXG_WAIT);
314 dmu_tx_abort(tx);
327 nvarg, 0, tx);
328 dmu_tx_commit(tx);
437 dmu_tx_t *tx, const char *fmt, va_list adx)
447 if (tx->tx_txg == TXG_INITIAL || !spa_writeable(spa)) {
462 fnvlist_add_uint64(nvl, ZPOOL_HIST_TXG, tx->tx_txg);
464 if (dmu_tx_is_syncing(tx)) {
465 spa_history_log_sync(nvl, tx);
468 spa_history_log_sync, nvl, 0, tx);
475 dmu_tx_t *tx, const char *fmt, ...)
477 dmu_tx_t *htx = tx;
480 /* create a tx if we didn't get one */
481 if (tx == NULL) {
493 /* if we didn't get a tx from the caller, commit the one we made */
494 if (tx == NULL)
500 dmu_tx_t *tx, const char *fmt, ...)
506 ASSERT(tx != NULL);
513 log_internal(nvl, operation, dsl_dataset_get_spa(ds), tx, fmt, adx);
519 dmu_tx_t *tx, const char *fmt, ...)
525 ASSERT(tx != NULL);
533 log_internal(nvl, operation, dd->dd_pool->dp_spa, tx, fmt, adx);