Lines Matching refs:tx

86 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx)
95 sizeof (spa_history_phys_t), tx);
99 &spa->spa_history, tx) == 0);
105 dmu_buf_will_dirty(dbp, tx);
151 dmu_tx_t *tx)
170 dmu_write(mos, spa->spa_history, phys_eof, firstwrite, buf, tx);
176 len, (char *)buf + firstwrite, tx);
199 spa_history_log_sync(void *arg, dmu_tx_t *tx)
202 spa_t *spa = dmu_tx_pool(tx)->dp_spa;
217 spa_history_create_obj(spa, tx);
227 dmu_buf_will_dirty(dbp, tx);
269 ret = spa_history_write(spa, &le_len, sizeof (le_len), shpp, tx);
271 ret = spa_history_write(spa, record_packed, reclen, shpp, tx);
304 dmu_tx_t *tx;
310 tx = dmu_tx_create_dd(spa_get_dsl(spa)->dp_mos_dir);
311 err = dmu_tx_assign(tx, TXG_WAIT);
313 dmu_tx_abort(tx);
326 nvarg, 0, ZFS_SPACE_CHECK_NONE, tx);
327 dmu_tx_commit(tx);
436 dmu_tx_t *tx, const char *fmt, va_list adx)
445 if (tx->tx_txg == TXG_INITIAL || !spa_writeable(spa)) {
456 fnvlist_add_uint64(nvl, ZPOOL_HIST_TXG, tx->tx_txg);
458 if (dmu_tx_is_syncing(tx)) {
459 spa_history_log_sync(nvl, tx);
462 spa_history_log_sync, nvl, 0, ZFS_SPACE_CHECK_NONE, tx);
469 dmu_tx_t *tx, const char *fmt, ...)
471 dmu_tx_t *htx = tx;
474 /* create a tx if we didn't get one */
475 if (tx == NULL) {
487 /* if we didn't get a tx from the caller, commit the one we made */
488 if (tx == NULL)
494 dmu_tx_t *tx, const char *fmt, ...)
500 ASSERT(tx != NULL);
507 log_internal(nvl, operation, dsl_dataset_get_spa(ds), tx, fmt, adx);
513 dmu_tx_t *tx, const char *fmt, ...)
519 ASSERT(tx != NULL);
527 log_internal(nvl, operation, dd->dd_pool->dp_spa, tx, fmt, adx);