Lines Matching refs:itx

103  * When running ziltest we want to keep all itx's and so maintain
1048 zil_lwb_commit(zilog_t *zilog, itx_t *itx, lwb_t *lwb)
1050 lr_t *lrc = &itx->itx_lr; /* common log record */
1064 if (lrc->lrc_txtype == TX_WRITE && itx->itx_wr_state == WR_NEED_COPY)
1098 if (itx->itx_wr_state != WR_COPIED) {
1103 ASSERT(itx->itx_wr_state == WR_NEED_COPY);
1107 ASSERT(itx->itx_wr_state == WR_INDIRECT);
1111 itx->itx_private, lrw, dbuf, lwb->lwb_zio);
1127 * equal to the itx sequence number because not all transactions
1142 itx_t *itx;
1146 itx = kmem_alloc(offsetof(itx_t, itx_lr) + lrsize, KM_SLEEP);
1147 itx->itx_lr.lrc_txtype = txtype;
1148 itx->itx_lr.lrc_reclen = lrsize;
1149 itx->itx_sod = lrsize; /* if write & WR_NEED_COPY will be increased */
1150 itx->itx_lr.lrc_seq = 0; /* defensive */
1151 itx->itx_sync = B_TRUE; /* default is synchronous */
1153 return (itx);
1157 zil_itx_destroy(itx_t *itx)
1159 kmem_free(itx, offsetof(itx_t, itx_lr) + itx->itx_lr.lrc_reclen);
1169 itx_t *itx;
1176 while ((itx = list_head(list)) != NULL) {
1177 list_remove(list, itx);
1178 kmem_free(itx, offsetof(itx_t, itx_lr) +
1179 itx->itx_lr.lrc_reclen);
1186 while ((itx = list_head(list)) != NULL) {
1187 list_remove(list, itx);
1188 kmem_free(itx, offsetof(itx_t, itx_lr) +
1189 itx->itx_lr.lrc_reclen);
1214 * Remove all async itx with the given oid.
1224 itx_t *itx;
1252 while ((itx = list_head(&clean_list)) != NULL) {
1253 list_remove(&clean_list, itx);
1254 kmem_free(itx, offsetof(itx_t, itx_lr) +
1255 itx->itx_lr.lrc_reclen);
1261 zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx)
1274 if ((itx->itx_lr.lrc_txtype & ~TX_CI) == TX_REMOVE)
1275 zil_remove_async(zilog, itx->itx_oid);
1280 if ((itx->itx_lr.lrc_txtype & ~TX_CI) == TX_RENAME)
1281 zil_async_to_sync(zilog, itx->itx_oid);
1312 if (itx->itx_sync) {
1313 list_insert_tail(&itxs->i_sync_list, itx);
1314 atomic_add_64(&zilog->zl_itx_list_sz, itx->itx_sod);
1315 itxg->itxg_sod += itx->itx_sod;
1318 uint64_t foid = ((lr_ooo_t *)&itx->itx_lr)->lr_foid;
1330 list_insert_tail(&ian->ia_list, itx);
1333 itx->itx_lr.lrc_txg = dmu_tx_get_txg(tx);
1469 itx_t *itx;
1498 while (itx = list_head(&zilog->zl_itx_commit_list)) {
1499 txg = itx->itx_lr.lrc_txg;
1503 lwb = zil_lwb_commit(zilog, itx, lwb);
1504 list_remove(&zilog->zl_itx_commit_list, itx);
1505 kmem_free(itx, offsetof(itx_t, itx_lr)
1506 + itx->itx_lr.lrc_reclen);
1754 * It's possible for an itx to be generated that doesn't dirty
1803 zil_commit(zilog, 0); /* commit all itx */