Lines Matching refs:tx

81 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx)  in spa_history_create_obj()  argument
90 sizeof (spa_history_phys_t), tx); in spa_history_create_obj()
94 &spa->spa_history, tx) == 0); in spa_history_create_obj()
100 dmu_buf_will_dirty(dbp, tx); in spa_history_create_obj()
146 dmu_tx_t *tx) in spa_history_write() argument
165 dmu_write(mos, spa->spa_history, phys_eof, firstwrite, buf, tx); in spa_history_write()
171 len, (char *)buf + firstwrite, tx); in spa_history_write()
192 spa_history_log_sync(void *arg1, void *arg2, dmu_tx_t *tx) in spa_history_log_sync() argument
212 spa_history_create_obj(spa, tx); in spa_history_log_sync()
222 dmu_buf_will_dirty(dbp, tx); in spa_history_log_sync()
253 tx->tx_txg) == 0); in spa_history_log_sync()
259 (longlong_t)tx->tx_txg, history_str); in spa_history_log_sync()
275 ret = spa_history_write(spa, &le_len, sizeof (le_len), shpp, tx); in spa_history_log_sync()
277 ret = spa_history_write(spa, record_packed, reclen, shpp, tx); in spa_history_log_sync()
303 dmu_tx_t *tx; in spa_history_log() local
307 tx = dmu_tx_create_dd(spa_get_dsl(spa)->dp_mos_dir); in spa_history_log()
308 err = dmu_tx_assign(tx, TXG_WAIT); in spa_history_log()
310 dmu_tx_abort(tx); in spa_history_log()
322 spa_history_log_sync, spa, ha, 0, tx); in spa_history_log()
323 dmu_tx_commit(tx); in spa_history_log()
428 dmu_tx_t *tx, const char *fmt, va_list adx) in log_internal() argument
436 if (tx->tx_txg == TXG_INITIAL) in log_internal()
450 if (dmu_tx_is_syncing(tx)) { in log_internal()
451 spa_history_log_sync(spa, ha, tx); in log_internal()
454 spa_history_log_sync, spa, ha, 0, tx); in log_internal()
461 dmu_tx_t *tx, const char *fmt, ...) in spa_history_log_internal() argument
463 dmu_tx_t *htx = tx; in spa_history_log_internal()
467 if (tx == NULL) { in spa_history_log_internal()
480 if (tx == NULL) in spa_history_log_internal()