Home
last modified time | relevance | path

Searched refs:txg (Results 1 – 25 of 55) sorted by relevance

123

/titanic_41/usr/src/uts/common/fs/zfs/
H A Dtxg.c117 txg_init(dsl_pool_t *dp, uint64_t txg) in txg_init() argument
148 tx->tx_open_txg = txg; in txg_init()
296 uint64_t txg; in txg_hold_open() local
299 txg = tx->tx_open_txg; in txg_hold_open()
302 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
306 th->th_txg = txg; in txg_hold_open()
308 return (txg); in txg_hold_open()
353 txg_quiesce(dsl_pool_t *dp, uint64_t txg) in txg_quiesce() argument
356 int g = txg & TXG_MASK; in txg_quiesce()
365 ASSERT(txg == tx->tx_open_txg); in txg_quiesce()
[all …]
H A Dzil.c294 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg) in zil_parse() argument
333 if ((error = parse_blk_func(zilog, &blk, arg, txg)) != 0) in zil_parse()
352 if ((error = parse_lr_func(zilog, lr, arg, txg)) != 0) in zil_parse()
441 zil_alloc_lwb(zilog_t *zilog, blkptr_t *bp, uint64_t txg) in zil_alloc_lwb() argument
449 lwb->lwb_max_txg = txg; in zil_alloc_lwb()
472 zilog_dirty(zilog_t *zilog, uint64_t txg) in zilog_dirty() argument
480 if (txg_list_add(&dp->dp_dirty_zilogs, zilog, txg)) { in zilog_dirty()
506 uint64_t txg = 0; in zil_create() local
530 txg = dmu_tx_get_txg(tx); in zil_create()
533 zio_free_zil(zilog->zl_spa, txg, &blk); in zil_create()
[all …]
H A Ddsl_pool.c148 dsl_pool_open_impl(spa_t *spa, uint64_t txg) in dsl_pool_open_impl() argument
157 txg_init(dp, txg); in dsl_pool_open_impl()
178 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp) in dsl_pool_init() argument
181 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_init()
339 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg) in dsl_pool_create() argument
342 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_create()
343 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_create()
360 VERIFY0(dsl_scan_init(dp, txg)); in dsl_pool_create()
461 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) in dsl_pool_sync() argument
473 tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_sync()
[all …]
H A Dmetaslab.c1212 metaslab_init(metaslab_group_t *mg, uint64_t id, uint64_t object, uint64_t txg, in metaslab_init() argument
1262 if (txg <= TXG_INITIAL) in metaslab_init()
1276 if (txg != 0) { in metaslab_init()
1277 vdev_dirty(vd, 0, NULL, txg); in metaslab_init()
1278 vdev_dirty(vd, VDD_METASLAB, ms, txg); in metaslab_init()
1391 uint64_t txg = spa_syncing_txg(spa); in metaslab_fragmentation() local
1396 vdev_dirty(vd, VDD_METASLAB, msp, txg + 1); in metaslab_fragmentation()
1398 "msp %p, vd %p", txg, msp, vd); in metaslab_fragmentation()
1696 metaslab_condense(metaslab_t *msp, uint64_t txg, dmu_tx_t *tx) in metaslab_condense() argument
1699 range_tree_t *freetree = msp->ms_freetree[txg & TXG_MASK]; in metaslab_condense()
[all …]
H A Duberblock.c47 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg) in uberblock_update() argument
49 ASSERT(ub->ub_txg < txg); in uberblock_update()
56 ub->ub_txg = txg; in uberblock_update()
61 return (ub->ub_rootbp.blk_birth == txg); in uberblock_update()
H A Dvdev_label.c434 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() argument
479 } else if (label_txg <= txg && label_txg > best_txg) { in vdev_label_read_config()
511 uint64_t state, pool_guid, device_guid, txg, spare_pool; in vdev_inuse() local
541 &txg) != 0)) { in vdev_inuse()
567 txg == 0 && vdtxg == crtxg) in vdev_inuse()
753 uint64_t txg = 0ULL; in vdev_label_init() local
756 txg = spa->spa_uberblock.ub_txg; in vdev_label_init()
757 label = spa_config_generate(spa, vd, txg, B_FALSE); in vdev_label_init()
1090 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() argument
1098 vdev_label_sync(zio, vd->vdev_child[c], l, txg, flags); in vdev_label_sync()
[all …]
H A Dspa.c3483 uint64_t txg = TXG_INITIAL; in spa_create() local
3526 spa->spa_first_txg = txg; in spa_create()
3527 spa->spa_uberblock.ub_txg = txg - 1; in spa_create()
3556 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && in spa_create()
3557 (error = spa_validate_aux(spa, nvroot, txg, in spa_create()
3561 vdev_expand(rvd->vdev_child[c], txg); in spa_create()
3606 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, txg); in spa_create()
3617 tx = dmu_tx_create_assigned(dp, txg); in spa_create()
3695 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_create()
3765 spa_alt_rootvdev(vdev_t *vd, vdev_t **avd, uint64_t *txg) in spa_alt_rootvdev() argument
[all …]
H A Dvdev.c830 vdev_metaslab_init(vdev_t *vd, uint64_t txg) in vdev_metaslab_init() argument
840 ASSERT(txg == 0 || spa_config_held(spa, SCL_ALLOC, RW_WRITER)); in vdev_metaslab_init()
874 if (txg == 0) { in vdev_metaslab_init()
882 error = metaslab_init(vd->vdev_mg, m, object, txg, in vdev_metaslab_init()
888 if (txg == 0) in vdev_metaslab_init()
899 if (txg == 0) in vdev_metaslab_init()
1368 uint64_t txg = spa_last_synced_txg(spa) != 0 ? in vdev_validate() local
1371 if ((label = vdev_label_read_config(vd, txg)) == NULL) { in vdev_validate()
1569 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) in vdev_create() argument
1589 (error = vdev_label_init(vd, txg, isreplacing ? in vdev_create()
[all …]
H A Dspa_config.c360 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate() argument
380 if (txg == -1ULL) in spa_config_generate()
381 txg = spa->spa_config_txg; in spa_config_generate()
392 txg) == 0); in spa_config_generate()
505 uint64_t txg; in spa_config_update() local
511 txg = spa_last_synced_txg(spa) + 1; in spa_config_update()
526 vdev_expand(tvd, txg); in spa_config_update()
534 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_config_update()
H A Dddt.c245 ddt_bp_fill(const ddt_phys_t *ddp, blkptr_t *bp, uint64_t txg) in ddt_bp_fill() argument
247 ASSERT(txg != 0); in ddt_bp_fill()
251 BP_SET_BIRTH(bp, txg, ddp->ddp_phys_birth); in ddt_bp_fill()
317 ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp, uint64_t txg) in ddt_phys_free() argument
323 zio_free(ddt->ddt_spa, txg, &blk); in ddt_phys_free()
989 ddt_sync_entry(ddt_t *ddt, ddt_entry_t *dde, dmu_tx_t *tx, uint64_t txg) in ddt_sync_entry() argument
1012 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1016 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1056 ddt_sync_table(ddt_t *ddt, dmu_tx_t *tx, uint64_t txg) in ddt_sync_table() argument
1074 ddt_sync_entry(ddt, dde, tx, txg); in ddt_sync_table()
[all …]
H A Dzio.c498 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_create() argument
548 zio->io_txg = txg; in zio_create()
708 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, in zio_write() argument
725 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_write()
748 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, in zio_rewrite() argument
754 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_rewrite()
781 zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp) in zio_free() argument
800 txg != spa->spa_syncing_txg || in zio_free()
802 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
804 VERIFY0(zio_wait(zio_free_sync(NULL, spa, txg, bp, 0))); in zio_free()
[all …]
H A Ddnode.c1270 uint64_t txg = tx->tx_txg; in dnode_setdirty() local
1282 ASSERT(dn->dn_free_txg == 0 || dn->dn_free_txg >= txg); in dnode_setdirty()
1296 if (list_link_active(&dn->dn_dirty_link[txg & TXG_MASK])) { in dnode_setdirty()
1304 ASSERT0(dn->dn_next_bonuslen[txg&TXG_MASK]); in dnode_setdirty()
1305 ASSERT0(dn->dn_next_blksz[txg&TXG_MASK]); in dnode_setdirty()
1306 ASSERT0(dn->dn_next_bonustype[txg&TXG_MASK]); in dnode_setdirty()
1309 dn->dn_object, txg); in dnode_setdirty()
1311 if (dn->dn_free_txg > 0 && dn->dn_free_txg <= txg) { in dnode_setdirty()
1312 list_insert_tail(&os->os_free_dnodes[txg&TXG_MASK], dn); in dnode_setdirty()
1314 list_insert_tail(&os->os_dirty_dnodes[txg&TXG_MASK], dn); in dnode_setdirty()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dtxg.h43 #define TXG_IDX (txg & TXG_MASK)
68 extern void txg_init(struct dsl_pool *dp, uint64_t txg);
77 extern void txg_delay(struct dsl_pool *dp, uint64_t txg, hrtime_t delta,
87 extern void txg_wait_synced(struct dsl_pool *dp, uint64_t txg);
95 extern void txg_wait_open(struct dsl_pool *dp, uint64_t txg);
110 #define TXG_CLEAN(txg) ((txg) - 1) argument
114 extern boolean_t txg_list_empty(txg_list_t *tl, uint64_t txg);
116 extern boolean_t txg_list_add(txg_list_t *tl, void *p, uint64_t txg);
117 extern boolean_t txg_list_add_tail(txg_list_t *tl, void *p, uint64_t txg);
118 extern void *txg_list_remove(txg_list_t *tl, uint64_t txg);
[all …]
H A Dvdev.h55 extern int vdev_create(vdev_t *, uint64_t txg, boolean_t isreplace);
65 uint64_t txg, uint64_t size);
67 uint64_t txg, uint64_t size);
69 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
78 extern int vdev_metaslab_init(vdev_t *vd, uint64_t txg);
81 extern void vdev_expand(vdev_t *vd, uint64_t txg);
125 extern int vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg,
147 extern nvlist_t *vdev_label_read_config(vdev_t *vd, uint64_t txg);
159 extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason);
H A Ddsl_pool.h135 int dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp);
138 dsl_pool_t *dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg);
139 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg);
140 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg);
145 void dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg);
146 void dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bpp);
147 void dsl_free_sync(zio_t *pio, dsl_pool_t *dp, uint64_t txg,
H A Dzio.h472 extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
478 extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
485 extern void zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp);
487 extern zio_t *zio_claim(zio_t *pio, spa_t *spa, uint64_t txg,
504 extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
507 extern int zio_alloc_zil(spa_t *spa, uint64_t txg, blkptr_t *new_bp,
509 extern void zio_free_zil(spa_t *spa, uint64_t txg, blkptr_t *bp);
H A Dvdev_impl.h313 extern void vdev_sync(vdev_t *vd, uint64_t txg);
314 extern void vdev_sync_done(vdev_t *vd, uint64_t txg);
315 extern void vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg);
316 extern void vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg);
H A Ddsl_scan.h125 int dsl_scan_init(struct dsl_pool *dp, uint64_t txg);
130 void dsl_resilver_restart(struct dsl_pool *, uint64_t txg);
H A Dzil.h378 uint64_t txg);
380 uint64_t txg);
385 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg);
H A Dddt.h182 uint64_t txg);
193 uint64_t txg);
234 extern void ddt_sync(spa_t *spa, uint64_t txg);
H A Darc.h139 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg,
151 int arc_tempreserve_space(uint64_t reserve, uint64_t txg);
/titanic_41/usr/src/uts/common/sys/fs/
H A Dzev.h147 uint64_t txg; member
158 uint64_t txg; member
164 uint64_t txg; member
174 uint64_t txg; member
189 uint64_t txg; member
203 uint64_t txg; member
215 uint64_t txg; member
225 uint64_t txg; member
237 uint64_t txg; member
250 uint64_t txg; member
[all …]
/titanic_41/usr/src/common/zev/
H A Dzev.h147 uint64_t txg; member
158 uint64_t txg; member
164 uint64_t txg; member
174 uint64_t txg; member
189 uint64_t txg; member
203 uint64_t txg; member
215 uint64_t txg; member
225 uint64_t txg; member
237 uint64_t txg; member
250 uint64_t txg; member
[all …]
/titanic_41/usr/src/uts/common/fs/zev/
H A Dzev_callbacks.c57 uint64_t txg; in zev_zfs_mount_cb() local
98 txg = dmu_tx_get_txg(tx); in zev_zfs_mount_cb()
111 rec->txg = txg; in zev_zfs_mount_cb()
133 uint64_t txg; in zev_zfs_umount_cb() local
151 txg = dmu_tx_get_txg(tx); in zev_zfs_umount_cb()
162 rec->txg = txg; in zev_zfs_umount_cb()
202 rec->txg = dmu_tx_get_txg(tx); in zev_zvol_truncate_cb()
235 rec->txg = dmu_tx_get_txg(tx); in zev_zvol_write_cb()
328 rec->txg = dmu_tx_get_txg(tx); in zev_znode_create_cb()
385 rec->txg = dmu_tx_get_txg(tx); in zev_znode_remove_cb()
[all …]
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c1214 uint64_t txg; in ztest_tx_assign() local
1232 txg = dmu_tx_get_txg(tx); in ztest_tx_assign()
1233 ASSERT(txg != 0); in ztest_tx_assign()
1234 return (txg); in ztest_tx_assign()
1262 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg) in ztest_bt_generate() argument
1269 bt->bt_txg = txg; in ztest_bt_generate()
1275 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg) in ztest_bt_verify() argument
1282 ASSERT3U(bt->bt_txg, <=, txg); in ztest_bt_verify()
1421 uint64_t txg; in ztest_replay_create() local
1440 txg = ztest_tx_assign(tx, TXG_WAIT, FTAG); in ztest_replay_create()
[all …]

123