Home
last modified time | relevance | path

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

123

/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dtxg.c114 SYSCTL_NODE(_vfs_zfs, OID_AUTO, txg, CTLFLAG_RW, 0, "ZFS TXG");
122 txg_init(dsl_pool_t *dp, uint64_t txg) in txg_init() argument
153 tx->tx_open_txg = txg; in txg_init()
300 uint64_t txg; in txg_hold_open() local
303 txg = tx->tx_open_txg; in txg_hold_open()
306 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
310 th->th_txg = txg; in txg_hold_open()
312 return (txg); in txg_hold_open()
357 txg_quiesce(dsl_pool_t *dp, uint64_t txg) in txg_quiesce() argument
360 int g = txg & TXG_MASK; in txg_quiesce()
[all …]
H A Dzil.c311 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg) in zil_parse() argument
350 if ((error = parse_blk_func(zilog, &blk, arg, txg)) != 0) in zil_parse()
369 if ((error = parse_lr_func(zilog, lr, arg, txg)) != 0) in zil_parse()
458 zil_alloc_lwb(zilog_t *zilog, blkptr_t *bp, boolean_t slog, uint64_t txg) in zil_alloc_lwb() argument
467 lwb->lwb_max_txg = txg; in zil_alloc_lwb()
490 zilog_dirty(zilog_t *zilog, uint64_t txg) in zilog_dirty() argument
498 if (txg_list_add(&dp->dp_dirty_zilogs, zilog, txg)) { in zilog_dirty()
512 zilog_is_dirty_in_txg(zilog_t *zilog, uint64_t txg) in zilog_is_dirty_in_txg() argument
516 if (txg_list_member(&dp->dp_dirty_zilogs, zilog, txg & TXG_MASK)) in zilog_is_dirty_in_txg()
545 uint64_t txg = 0; in zil_create() local
[all …]
H A Ddsl_pool.c250 dsl_pool_open_impl(spa_t *spa, uint64_t txg) in dsl_pool_open_impl() argument
259 txg_init(dp, txg); in dsl_pool_open_impl()
280 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp) in dsl_pool_init() argument
283 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_init()
442 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg) in dsl_pool_create() argument
445 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_create()
446 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_create()
463 VERIFY0(dsl_scan_init(dp, txg)); in dsl_pool_create()
558 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) in dsl_pool_sync() argument
570 tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_sync()
[all …]
H A Dmetaslab.c532 metaslab_verify_space(metaslab_t *msp, uint64_t txg) in metaslab_verify_space() argument
551 if (txg != spa_syncing_txg(spa) || msp->ms_sm == NULL || in metaslab_verify_space()
564 range_tree_space(msp->ms_alloctree[(txg + t) & TXG_MASK]); in metaslab_verify_space()
566 freed = range_tree_space(msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK]); in metaslab_verify_space()
1469 metaslab_init(metaslab_group_t *mg, uint64_t id, uint64_t object, uint64_t txg, in metaslab_init() argument
1521 if (txg <= TXG_INITIAL) in metaslab_init()
1535 if (txg != 0) { in metaslab_init()
1536 vdev_dirty(vd, 0, NULL, txg); in metaslab_init()
1537 vdev_dirty(vd, VDD_METASLAB, ms, txg); in metaslab_init()
1653 uint64_t txg = spa_syncing_txg(spa); in metaslab_set_fragmentation() local
[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.c448 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() argument
493 } else if (label_txg <= txg && label_txg > best_txg) { in vdev_label_read_config()
525 uint64_t state, pool_guid, device_guid, txg, spare_pool; in vdev_inuse() local
555 &txg) != 0)) { in vdev_inuse()
581 txg == 0 && vdtxg == crtxg) in vdev_inuse()
779 uint64_t txg = 0ULL; in vdev_label_init() local
782 txg = spa->spa_uberblock.ub_txg; in vdev_label_init()
783 label = spa_config_generate(spa, vd, txg, B_FALSE); in vdev_label_init()
1154 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() argument
1162 vdev_label_sync(zio, vd->vdev_child[c], l, txg, flags); in vdev_label_sync()
[all …]
H A Dtrim_map.c204 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) in trim_map_segment_add() argument
221 trim_map_segment_add(tm, start, ts->ts_start, txg); in trim_map_segment_add()
223 trim_map_segment_add(tm, ts->ts_end, end, txg); in trim_map_segment_add()
238 ts_after->ts_txg = txg; in trim_map_segment_add()
245 ts_before->ts_txg = txg; in trim_map_segment_add()
251 ts_after->ts_txg = txg; in trim_map_segment_add()
258 ts->ts_txg = txg; in trim_map_segment_add()
301 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) in trim_map_free_locked() argument
312 trim_map_segment_add(tm, start, end, txg); in trim_map_free_locked()
316 trim_map_free_locked(tm, start, zs->io_offset, txg); in trim_map_free_locked()
[all …]
H A Dspa.c3689 uint64_t txg = TXG_INITIAL; in spa_create() local
3732 spa->spa_first_txg = txg; in spa_create()
3733 spa->spa_uberblock.ub_txg = txg - 1; in spa_create()
3763 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && in spa_create()
3764 (error = spa_validate_aux(spa, nvroot, txg, in spa_create()
3769 vdev_expand(rvd->vdev_child[c], txg); in spa_create()
3814 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, txg); in spa_create()
3825 tx = dmu_tx_create_assigned(dp, txg); in spa_create()
3909 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_create()
3983 spa_alt_rootvdev(vdev_t *vd, vdev_t **avd, uint64_t *txg) in spa_alt_rootvdev() argument
[all …]
H A Dvdev.c949 vdev_metaslab_init(vdev_t *vd, uint64_t txg) in vdev_metaslab_init() argument
959 ASSERT(txg == 0 || spa_config_held(spa, SCL_ALLOC, RW_WRITER)); in vdev_metaslab_init()
993 if (txg == 0) { in vdev_metaslab_init()
1001 error = metaslab_init(vd->vdev_mg, m, object, txg, in vdev_metaslab_init()
1007 if (txg == 0) in vdev_metaslab_init()
1018 if (txg == 0) in vdev_metaslab_init()
1501 uint64_t txg = spa_last_synced_txg(spa) != 0 ? in vdev_validate() local
1504 if ((label = vdev_label_read_config(vd, txg)) == NULL) { in vdev_validate()
1699 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) in vdev_create() argument
1719 (error = vdev_label_init(vd, txg, isreplacing ? in vdev_create()
[all …]
H A Dspa_config.c379 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate() argument
399 if (txg == -1ULL) in spa_config_generate()
400 txg = spa->spa_config_txg; in spa_config_generate()
407 fnvlist_add_uint64(config, ZPOOL_CONFIG_POOL_TXG, txg); in spa_config_generate()
525 uint64_t txg; in spa_config_update() local
531 txg = spa_last_synced_txg(spa) + 1; in spa_config_update()
548 vdev_expand(tvd, txg); in spa_config_update()
556 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_config_update()
H A Dddt.c259 ddt_bp_fill(const ddt_phys_t *ddp, blkptr_t *bp, uint64_t txg) in ddt_bp_fill() argument
261 ASSERT(txg != 0); in ddt_bp_fill()
265 BP_SET_BIRTH(bp, txg, ddp->ddp_phys_birth); in ddt_bp_fill()
331 ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp, uint64_t txg) in ddt_phys_free() argument
337 zio_free(ddt->ddt_spa, txg, &blk); in ddt_phys_free()
1003 ddt_sync_entry(ddt_t *ddt, ddt_entry_t *dde, dmu_tx_t *tx, uint64_t txg) in ddt_sync_entry() argument
1026 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1030 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1070 ddt_sync_table(ddt_t *ddt, dmu_tx_t *tx, uint64_t txg) in ddt_sync_table() argument
1088 ddt_sync_entry(ddt, dde, tx, txg); in ddt_sync_table()
[all …]
H A Ddnode.c1272 uint64_t txg = tx->tx_txg; in dnode_setdirty() local
1284 ASSERT(dn->dn_free_txg == 0 || dn->dn_free_txg >= txg); in dnode_setdirty()
1298 if (list_link_active(&dn->dn_dirty_link[txg & TXG_MASK])) { in dnode_setdirty()
1306 ASSERT0(dn->dn_next_bonuslen[txg&TXG_MASK]); in dnode_setdirty()
1307 ASSERT0(dn->dn_next_blksz[txg&TXG_MASK]); in dnode_setdirty()
1308 ASSERT0(dn->dn_next_bonustype[txg&TXG_MASK]); in dnode_setdirty()
1311 dn->dn_object, txg); in dnode_setdirty()
1313 if (dn->dn_free_txg > 0 && dn->dn_free_txg <= txg) { in dnode_setdirty()
1314 list_insert_tail(&os->os_free_dnodes[txg&TXG_MASK], dn); in dnode_setdirty()
1316 list_insert_tail(&os->os_dirty_dnodes[txg&TXG_MASK], dn); in dnode_setdirty()
[all …]
H A Dzio.c620 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_create() argument
671 zio->io_txg = txg; in zio_create()
833 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, in zio_write() argument
851 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_write()
875 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, in zio_rewrite() argument
881 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_rewrite()
908 zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp) in zio_free() argument
927 txg != spa->spa_syncing_txg || in zio_free()
929 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
931 VERIFY0(zio_wait(zio_free_sync(NULL, spa, txg, bp, in zio_free()
[all …]
H A Ddbuf.c1154 dbuf_fix_old_data(dmu_buf_impl_t *db, uint64_t txg) in dbuf_fix_old_data() argument
1175 ASSERT(dr->dr_txg >= txg - 2); in dbuf_fix_old_data()
1199 uint64_t txg = dr->dr_txg; in dbuf_unoverride() local
1213 zio_free(db->db_objset->os_spa, txg, bp); in dbuf_unoverride()
1240 uint64_t txg = tx->tx_txg; in dbuf_free_range() local
1297 if (dr->dr_txg == txg) { in dbuf_free_range()
1314 dbuf_fix_old_data(db, txg); in dbuf_free_range()
1768 uint64_t txg = tx->tx_txg; in dbuf_undirty() local
1771 ASSERT(txg != 0); in dbuf_undirty()
1781 txg != spa_syncing_txg(dmu_objset_spa(db->db_objset))); in dbuf_undirty()
[all …]
H A Ddsl_scan.c123 dsl_scan_init(dsl_pool_t *dp, uint64_t txg) in dsl_scan_init() argument
149 scn->scn_restart_txg = txg; in dsl_scan_init()
179 scn->scn_restart_txg = txg; in dsl_scan_init()
403 dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bp) in dsl_free() argument
405 zio_free(dp->dp_spa, txg, bp); in dsl_free()
409 dsl_free_sync(zio_t *pio, dsl_pool_t *dp, uint64_t txg, const blkptr_t *bpp) in dsl_free_sync() argument
412 zio_nowait(zio_free_sync(pio, dp->dp_spa, txg, bpp, BP_GET_PSIZE(bpp), in dsl_free_sync()
1713 dsl_resilver_restart(dsl_pool_t *dp, uint64_t txg) in dsl_resilver_restart() argument
1715 if (txg == 0) { in dsl_resilver_restart()
1720 txg = dmu_tx_get_txg(tx); in dsl_resilver_restart()
[all …]
/netbsd-src/external/cddl/osnet/dist/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.h56 extern int vdev_create(vdev_t *, uint64_t txg, boolean_t isreplace);
66 uint64_t txg, uint64_t size);
68 uint64_t txg, uint64_t size);
70 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
83 extern int vdev_metaslab_init(vdev_t *vd, uint64_t txg);
87 extern void vdev_expand(vdev_t *vd, uint64_t txg);
134 extern int vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg);
156 extern nvlist_t *vdev_label_read_config(vdev_t *vd, uint64_t txg);
168 extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason);
H A Ddsl_pool.h137 int dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp);
140 dsl_pool_t *dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg);
141 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg);
142 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg);
147 void dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg);
148 void dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bpp);
149 void dsl_free_sync(zio_t *pio, dsl_pool_t *dp, uint64_t txg,
H A Dzio.h520 extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
527 extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
534 extern void zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp);
536 extern zio_t *zio_claim(zio_t *pio, spa_t *spa, uint64_t txg,
554 extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
557 extern int zio_alloc_zil(spa_t *spa, uint64_t txg, blkptr_t *new_bp,
559 extern void zio_free_zil(spa_t *spa, uint64_t txg, blkptr_t *bp);
H A Dvdev_impl.h352 extern void vdev_sync(vdev_t *vd, uint64_t txg);
353 extern void vdev_sync_done(vdev_t *vd, uint64_t txg);
354 extern void vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg);
355 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.h171 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg,
181 int arc_tempreserve_space(uint64_t reserve, uint64_t txg);
/netbsd-src/external/cddl/osnet/dist/cmd/ztest/
H A Dztest.c1218 uint64_t txg; in ztest_tx_assign() local
1236 txg = dmu_tx_get_txg(tx); in ztest_tx_assign()
1237 ASSERT(txg != 0); in ztest_tx_assign()
1238 return (txg); in ztest_tx_assign()
1266 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg) in ztest_bt_generate() argument
1273 bt->bt_txg = txg; in ztest_bt_generate()
1279 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg) in ztest_bt_verify() argument
1286 ASSERT3U(bt->bt_txg, <=, txg); in ztest_bt_verify()
1424 uint64_t txg; in ztest_replay_create() local
1443 txg = ztest_tx_assign(tx, TXG_WAIT, FTAG); in ztest_replay_create()
[all …]

123