Lines Matching defs:txg

36 #include <sys/txg.h>
905 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp,
961 zio->io_txg = txg;
1285 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
1297 zio = zio_create(pio, spa, txg, bp, data, lsize, psize, done, private,
1322 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, abd_t *data,
1328 zio = zio_create(pio, spa, txg, bp, data, size, size, done, private,
1358 zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp)
1372 * Frees that are for the currently-syncing txg, are not going to be
1383 txg != spa->spa_syncing_txg ||
1388 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp);
1390 VERIFY3P(zio_free_sync(NULL, spa, txg, bp, 0), ==, NULL);
1400 zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp,
1404 ASSERT(spa_syncing_txg(spa) == txg);
1424 return (zio_create(pio, spa, txg, bp, NULL, BP_GET_PSIZE(bp),
1429 metaslab_free(spa, bp, txg, B_FALSE);
1435 zio_claim(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp,
1449 * immediate writes contain committed data, but in a txg that was
1454 * All claims *must* be resolved in the first txg -- before the SPA
1456 * If txg == 0 we just verify that the block is claimable.
1460 ASSERT(txg == spa_min_claim_txg(spa) || txg == 0);
1463 zio = zio_create(pio, spa, txg, bp, NULL, BP_GET_PSIZE(bp),
2668 * Gang blocks are self-checksumming, using the bp's <vdev, offset, txg>
3037 uint64_t txg = pio->io_txg;
3079 bp, gbh_copies, txg, pio == gio ? NULL : gio->io_bp, flags,
3116 zio = zio_rewrite(pio, spa, txg, bp, gbh_abd, SPA_GANGBLOCKSIZE,
3146 zio_t *cio = zio_write(zio, spa, txg, &gbh->zg_blkptr[g],
3606 uint64_t txg = zio->io_txg;
3720 ASSERT(BP_GET_LOGICAL_BIRTH(bp) == txg);
3748 ddt_bp_fill(ddp, v, bp, txg);
3804 ddt_bp_fill(ddp, v, bp, txg);
3851 zio_t *cio = zio_write(zio, spa, txg, bp, zio->io_orig_abd,
4064 * to deferred frees that are in-flight. We track the txg when
4181 zio_alloc_zil(spa_t *spa, objset_t *os, uint64_t txg, blkptr_t *new_bp,
4187 ASSERT(txg > spa_syncing_txg(spa));
4209 txg, NULL, flags, &io_alloc_list, NULL, allocator);
4213 new_bp, 1, txg, NULL, flags,
4218 new_bp, 1, txg, NULL, flags,
4350 * then don't do the I/O unless zio's txg is actually in vd's DTL.