Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dtxg.c297 uint64_t txg; in txg_hold_open() local
307 th->th_txg = txg; in txg_hold_open()
309 return (txg); in txg_hold_open()
486 uint64_t txg; in txg_sync_thread() local
539 spa_sync(spa, txg); in txg_sync_thread()
565 uint64_t txg; in txg_quiesce_thread() local
617 tx->tx_syncing_txg == txg-1 || tx->tx_synced_txg == txg-1) in txg_delay()
621 if (tx->tx_open_txg > txg || tx->tx_synced_txg == txg-1) { in txg_delay()
644 if (txg == 0) in txg_wait_synced_impl()
703 if (txg == 0) in txg_wait_open()
[all …]
H A Ddsl_pool.c186 dsl_pool_open_impl(spa_t *spa, uint64_t txg) in dsl_pool_open_impl() argument
195 txg_init(dp, txg); in dsl_pool_open_impl()
235 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_init()
446 uint64_t txg) in dsl_pool_create() argument
467 VERIFY0(dsl_scan_init(dp, txg)); in dsl_pool_create()
598 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) in dsl_pool_sync() argument
610 tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_sync()
626 ASSERT(dsl_early_sync_task_verify(dp, txg)); in dsl_pool_sync()
652 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync()
743 if (dmu_objset_is_dirty(mos, txg)) { in dsl_pool_sync()
[all …]
H A Dzil.c638 uint64_t txg = 0; in zil_create() local
713 uint64_t txg; in zil_destroy() local
1387 uint64_t txg; in zil_lwb_write_issue() local
1556 txg = lrc->lrc_txg; in zil_lwb_commit()
1755 uint64_t otxg, txg; in zil_remove_async() local
1770 for (txg = otxg; txg < (otxg + TXG_CONCURRENT_STATES); txg++) { in zil_remove_async()
1800 uint64_t txg; in zil_itx_assign() local
1936 for (txg = otxg; txg < (otxg + TXG_CONCURRENT_STATES); txg++) { in zil_get_commit_list()
1981 for (txg = otxg; txg < (otxg + TXG_CONCURRENT_STATES); txg++) { in zil_async_to_sync()
3064 uint64_t txg; in zil_close() local
[all …]
H A Dvdev_removal.c562 uint64_t, txg + i); in free_from_removing_vdev()
1005 vcsa->vcsa_txg = txg; in spa_vdev_copy_segment()
1028 vdev_dirty(vd, 0, NULL, txg); in spa_vdev_copy_segment()
1137 uint64_t txg; in vdev_remove_complete() local
1144 txg = spa_vdev_enter(spa); in vdev_remove_complete()
1154 vd->vdev_id, txg); in vdev_remove_complete()
1191 txg = spa_vdev_enter(spa); in vdev_remove_complete()
1479 if (txg != last_txg) in spa_vdev_remove_thread()
1481 last_txg = txg; in spa_vdev_remove_thread()
2069 uint64_t txg = 0; in spa_vdev_remove() local
[all …]
H A Duberblock.c48 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg, uint64_t mmp_delay) in uberblock_update() argument
50 ASSERT(ub->ub_txg < txg); in uberblock_update()
57 ub->ub_txg = txg; in uberblock_update()
73 return (ub->ub_rootbp.blk_birth == txg); in uberblock_update()
H A Dspa_log_spacemap.c418 if (e->lse_start > txg) in spa_log_summary_decrement_mscount()
536 spa_log_sm_decrement_mscount(spa_t *spa, uint64_t txg) in spa_log_sm_decrement_mscount() argument
538 spa_log_sm_t target = { .sls_txg = txg }; in spa_log_sm_decrement_mscount()
572 e->lse_start = txg; in summary_add_data()
576 ASSERT3U(e->lse_start, <=, txg); in summary_add_data()
721 uint64_t txg = dmu_tx_get_txg(tx); in spa_flush_metaslabs() local
749 if (spa->spa_uberblock.ub_rootbp.blk_birth < txg && in spa_flush_metaslabs()
805 if (metaslab_unflushed_txg(curr) == txg) in spa_flush_metaslabs()
916 spa_log_sm_alloc(uint64_t sm_obj, uint64_t txg) in spa_log_sm_alloc() argument
921 sls->sls_txg = txg; in spa_log_sm_alloc()
[all …]
H A Dmetaslab.c625 if (txg > in metaslab_class_evict_old()
629 metaslab_evict(msp, txg); in metaslab_class_evict_old()
2534 msp->ms_selected_txg = txg; in metaslab_set_selected_txg()
2629 if (txg <= TXG_INITIAL) { in metaslab_init()
2635 if (txg != 0) { in metaslab_init()
4543 msp->ms_alloc_txg = txg; in metaslab_block_alloc()
5550 uint64_t txg) in metaslab_claim_concrete() argument
5643 arg.mcca_txg = txg; in metaslab_claim_impl()
5650 offset, size, txg); in metaslab_claim_impl()
5736 BP_SET_BIRTH(bp, txg, txg); in metaslab_alloc()
[all …]
H A Dspa_config.c364 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate() argument
385 if (txg == -1ULL) in spa_config_generate()
386 txg = spa->spa_config_txg; in spa_config_generate()
410 fnvlist_add_uint64(config, ZPOOL_CONFIG_POOL_TXG, txg); in spa_config_generate()
521 uint64_t txg; in spa_config_update() local
527 txg = spa_last_synced_txg(spa) + 1; in spa_config_update()
554 vdev_expand(tvd, txg); in spa_config_update()
562 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_config_update()
H A Dvdev_label.c807 (u_longlong_t)txg); in vdev_label_read_config()
854 &txg) != 0)) { in vdev_inuse()
880 txg == 0 && vdtxg == crtxg) in vdev_inuse()
1070 uint64_t txg = 0ULL; in vdev_label_init() local
1073 txg = spa->spa_uberblock.ub_txg; in vdev_label_init()
1661 vd->vdev_child[c], l, txg, flags); in vdev_label_sync()
1772 ASSERT(ub->ub_txg <= txg); in vdev_config_sync()
1780 if (ub->ub_txg < txg) { in vdev_config_sync()
1782 txg, spa->spa_mmp.mmp_delay); in vdev_config_sync()
1788 if (txg > spa_freeze_txg(spa)) in vdev_config_sync()
[all …]
H A Dspa.c5211 vdev_expand(vd, txg);
5455 if (label_txg > *txg) {
5456 *txg = label_txg;
5482 uint64_t guid, txg; local
6101 uint64_t txg; local
6168 txg, EINVAL));
6455 uint64_t txg; local
6644 vdev_expand(tvd, txg);
6945 uint64_t txg, *glist; local
8455 ddt_sync(spa, txg);
[all …]
H A Dvdev.c1268 if (txg == 0) in vdev_metaslab_init()
1280 if (txg == 0) in vdev_metaslab_init()
1809 uint64_t txg; in vdev_validate() local
1834 txg = UINT64_MAX; in vdev_validate()
2394 range_tree_add(rt, txg, size); in vdev_dtl_dirty()
2633 if (txg != 0) in vdev_dtl_reassess()
3176 metaslab_sync_done(msp, txg); in vdev_sync_done()
3222 metaslab_sync(msp, txg); in vdev_sync()
3227 vdev_dtl_sync(lvd, txg); in vdev_sync()
3891 uint64_t txg = zio->io_txg; in vdev_stat_update() local
[all …]
H A Dddt.c249 ASSERT(txg != 0); in ddt_bp_fill()
253 BP_SET_BIRTH(bp, txg, ddp->ddp_phys_birth); in ddt_bp_fill()
333 zio_free(ddt->ddt_spa, txg, &blk); in ddt_phys_free()
1037 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1041 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry()
1081 ddt_sync_table(ddt_t *ddt, dmu_tx_t *tx, uint64_t txg) in ddt_sync_table() argument
1099 ddt_sync_entry(ddt, dde, tx, txg); in ddt_sync_table()
1122 ddt_sync(spa_t *spa, uint64_t txg) in ddt_sync() argument
1128 ASSERT(spa_syncing_txg(spa) == txg); in ddt_sync()
1130 tx = dmu_tx_create_assigned(spa->spa_dsl_pool, txg); in ddt_sync()
[all …]
H A Dvdev_initialize.c66 uint64_t txg = dmu_tx_get_txg(tx); in vdev_initialize_zap_update_sync() local
73 uint64_t last_offset = vd->vdev_initialize_offset[txg & TXG_MASK]; in vdev_initialize_zap_update_sync()
74 vd->vdev_initialize_offset[txg & TXG_MASK] = 0; in vdev_initialize_zap_update_sync()
201 uint64_t txg = dmu_tx_get_txg(tx); in vdev_initialize_write() local
206 if (vd->vdev_initialize_offset[txg & TXG_MASK] == 0) { in vdev_initialize_write()
232 vd->vdev_initialize_offset[txg & TXG_MASK] = start + size; in vdev_initialize_write()
233 zio_nowait(zio_write_phys(spa->spa_txg_zio[txg & TXG_MASK], vd, start, in vdev_initialize_write()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dtxg.h43 #define TXG_IDX (txg & TXG_MASK)
69 extern void txg_init(struct dsl_pool *dp, uint64_t txg);
88 extern void txg_wait_synced(struct dsl_pool *dp, uint64_t txg);
101 extern void txg_wait_open(struct dsl_pool *dp, uint64_t txg,
113 extern void txg_verify(spa_t *spa, uint64_t txg);
119 #define TXG_CLEAN(txg) ((txg) - 1) argument
123 extern boolean_t txg_list_empty(txg_list_t *tl, uint64_t txg);
125 extern boolean_t txg_list_add(txg_list_t *tl, void *p, uint64_t txg);
127 extern void *txg_list_remove(txg_list_t *tl, uint64_t txg);
130 extern void *txg_list_head(txg_list_t *tl, uint64_t txg);
[all …]
H A Ddsl_pool.h146 int dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp);
150 struct dsl_crypto_params *dcp, uint64_t txg);
151 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg);
152 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg);
158 void dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg);
159 void dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bpp);
160 void dsl_free_sync(zio_t *pio, dsl_pool_t *dp, uint64_t txg,
H A Dvdev.h61 extern int vdev_create(vdev_t *, uint64_t txg, boolean_t isreplace);
71 uint64_t txg, uint64_t size);
73 uint64_t txg, uint64_t size);
76 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
94 extern int vdev_metaslab_init(vdev_t *vd, uint64_t txg);
97 extern void vdev_expand(vdev_t *vd, uint64_t txg);
151 extern int vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg);
178 extern nvlist_t *vdev_label_read_config(vdev_t *vd, uint64_t txg);
195 extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason);
H A Dzil.h403 uint64_t txg);
405 uint64_t txg);
411 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg,
449 extern void zil_lwb_add_txg(struct lwb *lwb, uint64_t txg);
H A Dzio.h519 extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
526 extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
533 extern void zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp);
535 extern zio_t *zio_claim(zio_t *pio, spa_t *spa, uint64_t txg,
556 extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
559 extern int zio_alloc_zil(spa_t *spa, objset_t *os, uint64_t txg,
561 extern void zio_free_zil(spa_t *spa, uint64_t txg, blkptr_t *bp);
H A Dvdev_impl.h530 extern void vdev_sync(vdev_t *vd, uint64_t txg);
531 extern void vdev_sync_done(vdev_t *vd, uint64_t txg);
532 extern void vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg);
533 extern void vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg);
H A Ddsl_scan.h162 int dsl_scan_init(struct dsl_pool *dp, uint64_t txg);
170 void dsl_scan_restart_resilver(struct dsl_pool *, uint64_t txg);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import.kshlib347 txg=$(tail "/proc/spl/kstat/zfs/$pool/txgs" |
349 [[ "$txg" ]] || txg=0
350 echo $txg
372 typeset -i txg
373 txg=$(mdb -k -e "$mdbcmd")
376 echo $txg
H A Dimport_rewind_device_replaced.ksh93 typeset txg
94 txg=$(get_last_txg_synced $TESTPOOL1)
116 log_must zpool import -d $DEVICE_DIR -o readonly=on -T $txg $TESTPOOL1
136 log_must zpool import -d $DEVICE_DIR -T $txg $TESTPOOL1
H A Dimport_rewind_config_changed.ksh75 typeset txg
76 txg=$(get_last_txg_synced $TESTPOOL1)
130 log_must zpool import -d $DEVICE_DIR -T $txg $TESTPOOL1
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c1400 uint64_t txg; in ztest_tx_assign() local
1420 return (txg); in ztest_tx_assign()
1658 uint64_t txg; in ztest_replay_create() local
1679 if (txg == 0) in ztest_replay_create()
1724 lr->lr_gen, txg, txg); in ztest_replay_create()
1926 uint64_t txg; in ztest_replay_truncate() local
2381 uint64_t txg; in ztest_prealloc() local
4789 if (txg == 0) in ztest_zap()
4857 if (txg == 0) in ztest_zap()
4890 if (txg == 0) in ztest_zap()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_sync/
H A Dzpool_sync_001_pos.ksh36 typeset -i txg=$(zdb -u $1 | sed -n 's/^[ ][ ]*txg = \(.*\)$/\1/p')
37 echo $txg

123