/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | txg.c | 117 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 D | zil.c | 295 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg) in zil_parse() argument 334 if ((error = parse_blk_func(zilog, &blk, arg, txg)) != 0) in zil_parse() 353 if ((error = parse_lr_func(zilog, lr, arg, txg)) != 0) in zil_parse() 442 zil_alloc_lwb(zilog_t *zilog, blkptr_t *bp, uint64_t txg) in zil_alloc_lwb() argument 450 lwb->lwb_max_txg = txg; in zil_alloc_lwb() 473 zilog_dirty(zilog_t *zilog, uint64_t txg) in zilog_dirty() argument 481 if (txg_list_add(&dp->dp_dirty_zilogs, zilog, txg)) { in zilog_dirty() 507 uint64_t txg = 0; in zil_create() local 531 txg = dmu_tx_get_txg(tx); in zil_create() 534 zio_free_zil(zilog->zl_spa, txg, &blk); in zil_create() [all …]
|
H A D | dsl_pool.c | 149 dsl_pool_open_impl(spa_t *spa, uint64_t txg) in dsl_pool_open_impl() argument 158 txg_init(dp, txg); in dsl_pool_open_impl() 179 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp) in dsl_pool_init() argument 182 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_init() 340 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg) in dsl_pool_create() argument 343 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); in dsl_pool_create() 344 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_create() 361 VERIFY0(dsl_scan_init(dp, txg)); in dsl_pool_create() 462 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) in dsl_pool_sync() argument 474 tx = dmu_tx_create_assigned(dp, txg); in dsl_pool_sync() [all …]
|
H A D | metaslab.c | 1213 metaslab_init(metaslab_group_t *mg, uint64_t id, uint64_t object, uint64_t txg, in metaslab_init() argument 1263 if (txg <= TXG_INITIAL) in metaslab_init() 1277 if (txg != 0) { in metaslab_init() 1278 vdev_dirty(vd, 0, NULL, txg); in metaslab_init() 1279 vdev_dirty(vd, VDD_METASLAB, ms, txg); in metaslab_init() 1392 uint64_t txg = spa_syncing_txg(spa); in metaslab_fragmentation() local 1397 vdev_dirty(vd, VDD_METASLAB, msp, txg + 1); in metaslab_fragmentation() 1399 "msp %p, vd %p", txg, msp, vd); in metaslab_fragmentation() 1697 metaslab_condense(metaslab_t *msp, uint64_t txg, dmu_tx_t *tx) in metaslab_condense() argument 1700 range_tree_t *freetree = msp->ms_freetree[txg & TXG_MASK]; in metaslab_condense() [all …]
|
H A D | uberblock.c | 47 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 D | vdev_label.c | 434 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() 754 uint64_t txg = 0ULL; in vdev_label_init() local 757 txg = spa->spa_uberblock.ub_txg; in vdev_label_init() 758 label = spa_config_generate(spa, vd, txg, B_FALSE); in vdev_label_init() 1091 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() argument 1099 vdev_label_sync(zio, vd->vdev_child[c], l, txg, flags); in vdev_label_sync() [all …]
|
H A D | spa.c | 3497 uint64_t txg = TXG_INITIAL; in spa_create() local 3540 spa->spa_first_txg = txg; in spa_create() 3541 spa->spa_uberblock.ub_txg = txg - 1; in spa_create() 3570 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && in spa_create() 3571 (error = spa_validate_aux(spa, nvroot, txg, in spa_create() 3575 vdev_expand(rvd->vdev_child[c], txg); in spa_create() 3620 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, txg); in spa_create() 3631 tx = dmu_tx_create_assigned(dp, txg); in spa_create() 3715 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_create() 3786 spa_alt_rootvdev(vdev_t *vd, vdev_t **avd, uint64_t *txg) in spa_alt_rootvdev() argument [all …]
|
H A D | vdev.c | 831 vdev_metaslab_init(vdev_t *vd, uint64_t txg) in vdev_metaslab_init() argument 841 ASSERT(txg == 0 || spa_config_held(spa, SCL_ALLOC, RW_WRITER)); in vdev_metaslab_init() 875 if (txg == 0) { in vdev_metaslab_init() 883 error = metaslab_init(vd->vdev_mg, m, object, txg, in vdev_metaslab_init() 889 if (txg == 0) in vdev_metaslab_init() 900 if (txg == 0) in vdev_metaslab_init() 1369 uint64_t txg = spa_last_synced_txg(spa) != 0 ? in vdev_validate() local 1372 if ((label = vdev_label_read_config(vd, txg)) == NULL) { in vdev_validate() 1570 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing) in vdev_create() argument 1590 (error = vdev_label_init(vd, txg, isreplacing ? in vdev_create() [all …]
|
H A D | spa_config.c | 359 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate() argument 379 if (txg == -1ULL) in spa_config_generate() 380 txg = spa->spa_config_txg; in spa_config_generate() 391 txg) == 0); in spa_config_generate() 504 uint64_t txg; in spa_config_update() local 510 txg = spa_last_synced_txg(spa) + 1; in spa_config_update() 525 vdev_expand(tvd, txg); in spa_config_update() 533 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_config_update()
|
H A D | ddt.c | 246 ddt_bp_fill(const ddt_phys_t *ddp, blkptr_t *bp, uint64_t txg) in ddt_bp_fill() argument 248 ASSERT(txg != 0); in ddt_bp_fill() 252 BP_SET_BIRTH(bp, txg, ddp->ddp_phys_birth); in ddt_bp_fill() 318 ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp, uint64_t txg) in ddt_phys_free() argument 324 zio_free(ddt->ddt_spa, txg, &blk); in ddt_phys_free() 990 ddt_sync_entry(ddt_t *ddt, ddt_entry_t *dde, dmu_tx_t *tx, uint64_t txg) in ddt_sync_entry() argument 1013 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry() 1017 ddt_phys_free(ddt, ddk, ddp, txg); in ddt_sync_entry() 1057 ddt_sync_table(ddt_t *ddt, dmu_tx_t *tx, uint64_t txg) in ddt_sync_table() argument 1075 ddt_sync_entry(ddt, dde, tx, txg); in ddt_sync_table() [all …]
|
H A D | zio.c | 499 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_create() argument 549 zio->io_txg = txg; in zio_create() 709 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, in zio_write() argument 726 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_write() 749 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, in zio_rewrite() argument 755 zio = zio_create(pio, spa, txg, bp, data, size, done, private, in zio_rewrite() 782 zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp) in zio_free() argument 801 txg != spa->spa_syncing_txg || in zio_free() 803 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free() 805 VERIFY0(zio_wait(zio_free_sync(NULL, spa, txg, bp, 0))); in zio_free() [all …]
|
H A D | dnode.c | 1269 uint64_t txg = tx->tx_txg; in dnode_setdirty() local 1281 ASSERT(dn->dn_free_txg == 0 || dn->dn_free_txg >= txg); in dnode_setdirty() 1295 if (list_link_active(&dn->dn_dirty_link[txg & TXG_MASK])) { in dnode_setdirty() 1303 ASSERT0(dn->dn_next_bonuslen[txg&TXG_MASK]); in dnode_setdirty() 1304 ASSERT0(dn->dn_next_blksz[txg&TXG_MASK]); in dnode_setdirty() 1305 ASSERT0(dn->dn_next_bonustype[txg&TXG_MASK]); in dnode_setdirty() 1308 dn->dn_object, txg); in dnode_setdirty() 1310 if (dn->dn_free_txg > 0 && dn->dn_free_txg <= txg) { in dnode_setdirty() 1311 list_insert_tail(&os->os_free_dnodes[txg&TXG_MASK], dn); in dnode_setdirty() 1313 list_insert_tail(&os->os_dirty_dnodes[txg&TXG_MASK], dn); in dnode_setdirty() [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | txg.h | 43 #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 D | vdev.h | 55 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); 146 extern nvlist_t *vdev_label_read_config(vdev_t *vd, uint64_t txg); 158 extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason);
|
H A D | dsl_pool.h | 135 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 D | zio.h | 476 extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, 482 extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, 489 extern void zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp); 491 extern zio_t *zio_claim(zio_t *pio, spa_t *spa, uint64_t txg, 508 extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg, 511 extern int zio_alloc_zil(spa_t *spa, uint64_t txg, blkptr_t *new_bp, 513 extern void zio_free_zil(spa_t *spa, uint64_t txg, blkptr_t *bp);
|
H A D | vdev_impl.h | 313 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 D | dsl_scan.h | 125 int dsl_scan_init(struct dsl_pool *dp, uint64_t txg); 130 void dsl_resilver_restart(struct dsl_pool *, uint64_t txg);
|
H A D | zil.h | 379 uint64_t txg); 381 uint64_t txg); 386 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg);
|
H A D | ddt.h | 182 uint64_t txg); 193 uint64_t txg); 234 extern void ddt_sync(spa_t *spa, uint64_t txg);
|
H A D | arc.h | 142 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg, 154 int arc_tempreserve_space(uint64_t reserve, uint64_t txg);
|
/titanic_50/usr/src/uts/common/sys/fs/ |
H A D | zev.h | 147 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_50/usr/src/common/zev/ |
H A D | zev.h | 147 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_50/usr/src/uts/common/fs/zev/ |
H A D | zev_callbacks.c | 57 uint64_t txg; in zev_zfs_mount_cb() local 102 txg = dmu_tx_get_txg(tx); in zev_zfs_mount_cb() 115 rec->txg = txg; in zev_zfs_mount_cb() 137 uint64_t txg; in zev_zfs_umount_cb() local 155 txg = dmu_tx_get_txg(tx); in zev_zfs_umount_cb() 166 rec->txg = txg; in zev_zfs_umount_cb() 206 rec->txg = dmu_tx_get_txg(tx); in zev_zvol_truncate_cb() 239 rec->txg = dmu_tx_get_txg(tx); in zev_zvol_write_cb() 332 rec->txg = dmu_tx_get_txg(tx); in zev_znode_create_cb() 389 rec->txg = dmu_tx_get_txg(tx); in zev_znode_remove_cb() [all …]
|
/titanic_50/usr/src/cmd/ztest/ |
H A D | ztest.c | 1218 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() 1425 uint64_t txg; in ztest_replay_create() local 1444 txg = ztest_tx_assign(tx, TXG_WAIT, FTAG); in ztest_replay_create() [all …]
|