Lines Matching defs:itx

92  * When running ziltest we want to keep all itx's and so maintain
1037 zil_lwb_commit(zilog_t *zilog, itx_t *itx, lwb_t *lwb)
1039 lr_t *lrc = &itx->itx_lr; /* common log record */
1053 if (lrc->lrc_txtype == TX_WRITE && itx->itx_wr_state == WR_NEED_COPY)
1087 if (itx->itx_wr_state != WR_COPIED) {
1092 ASSERT(itx->itx_wr_state == WR_NEED_COPY);
1096 ASSERT(itx->itx_wr_state == WR_INDIRECT);
1100 itx->itx_private, lrw, dbuf, lwb->lwb_zio);
1116 * equal to the itx sequence number because not all transactions
1131 itx_t *itx;
1135 itx = kmem_alloc(offsetof(itx_t, itx_lr) + lrsize, KM_SLEEP);
1136 itx->itx_lr.lrc_txtype = txtype;
1137 itx->itx_lr.lrc_reclen = lrsize;
1138 itx->itx_sod = lrsize; /* if write & WR_NEED_COPY will be increased */
1139 itx->itx_lr.lrc_seq = 0; /* defensive */
1140 itx->itx_sync = B_TRUE; /* default is synchronous */
1142 return (itx);
1146 zil_itx_destroy(itx_t *itx)
1148 kmem_free(itx, offsetof(itx_t, itx_lr) + itx->itx_lr.lrc_reclen);
1158 itx_t *itx;
1165 while ((itx = list_head(list)) != NULL) {
1166 list_remove(list, itx);
1167 kmem_free(itx, offsetof(itx_t, itx_lr) +
1168 itx->itx_lr.lrc_reclen);
1175 while ((itx = list_head(list)) != NULL) {
1176 list_remove(list, itx);
1177 kmem_free(itx, offsetof(itx_t, itx_lr) +
1178 itx->itx_lr.lrc_reclen);
1203 * Remove all async itx with the given oid.
1213 itx_t *itx;
1241 while ((itx = list_head(&clean_list)) != NULL) {
1242 list_remove(&clean_list, itx);
1243 kmem_free(itx, offsetof(itx_t, itx_lr) +
1244 itx->itx_lr.lrc_reclen);
1250 zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx)
1263 if ((itx->itx_lr.lrc_txtype & ~TX_CI) == TX_REMOVE)
1264 zil_remove_async(zilog, itx->itx_oid);
1269 if ((itx->itx_lr.lrc_txtype & ~TX_CI) == TX_RENAME)
1270 zil_async_to_sync(zilog, itx->itx_oid);
1301 if (itx->itx_sync) {
1302 list_insert_tail(&itxs->i_sync_list, itx);
1303 atomic_add_64(&zilog->zl_itx_list_sz, itx->itx_sod);
1304 itxg->itxg_sod += itx->itx_sod;
1307 uint64_t foid = ((lr_ooo_t *)&itx->itx_lr)->lr_foid;
1319 list_insert_tail(&ian->ia_list, itx);
1322 itx->itx_lr.lrc_txg = dmu_tx_get_txg(tx);
1458 itx_t *itx;
1487 while (itx = list_head(&zilog->zl_itx_commit_list)) {
1488 txg = itx->itx_lr.lrc_txg;
1492 lwb = zil_lwb_commit(zilog, itx, lwb);
1493 list_remove(&zilog->zl_itx_commit_list, itx);
1494 kmem_free(itx, offsetof(itx_t, itx_lr)
1495 + itx->itx_lr.lrc_reclen);
1743 * It's possible for an itx to be generated that doesn't dirty
1792 zil_commit(zilog, 0); /* commit all itx */