Home
last modified time | relevance | path

Searched refs:TXG_MASK (Results 1 – 15 of 15) sorted by relevance

/titanic_44/usr/src/uts/common/fs/zfs/
H A Dtxg.c302 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
324 int g = th->th_txg & TXG_MASK; in txg_register_callbacks()
335 int g = th->th_txg & TXG_MASK; in txg_rele_to_sync()
356 int g = txg & TXG_MASK; in txg_quiesce()
421 int g = txg & TXG_MASK; in txg_dispatch_callbacks()
717 return (tl->tl_head[txg & TXG_MASK] == NULL); in txg_list_empty()
745 int t = txg & TXG_MASK; in txg_list_add()
769 int t = txg & TXG_MASK; in txg_list_add_tail()
796 int t = txg & TXG_MASK; in txg_list_remove()
818 int t = txg & TXG_MASK; in txg_list_remove_this()
[all …]
H A Ddnode.c362 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = DN_ZERO_BONUSLEN; in dnode_setbonuslen()
364 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_setbonuslen()
375 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_setbonus_type()
385 dn->dn_rm_spillblk[tx->tx_txg&TXG_MASK] = DN_KILL_SPILLBLK; in dnode_rm_spill()
611 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate()
612 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_allocate()
613 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_allocate()
614 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = dn->dn_datablksz; in dnode_allocate()
648 dn->dn_next_blksz[tx->tx_txg&TXG_MASK] = blocksize; in dnode_reallocate()
651 dn->dn_next_bonuslen[tx->tx_txg&TXG_MASK] = bonuslen; in dnode_reallocate()
[all …]
H A Dmetaslab.c1699 range_tree_t *freetree = msp->ms_freetree[txg & TXG_MASK]; in metaslab_condense()
1739 range_tree_walk(msp->ms_alloctree[(txg + t) & TXG_MASK], in metaslab_condense()
1786 range_tree_t *alloctree = msp->ms_alloctree[txg & TXG_MASK]; in metaslab_sync()
1787 range_tree_t **freetree = &msp->ms_freetree[txg & TXG_MASK]; in metaslab_sync()
1789 &msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK]; in metaslab_sync()
1896 ASSERT0(range_tree_space(msp->ms_alloctree[txg & TXG_MASK])); in metaslab_sync()
1897 ASSERT0(range_tree_space(msp->ms_freetree[txg & TXG_MASK])); in metaslab_sync()
1931 if (msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK] == NULL) { in metaslab_sync_done()
1952 freed_tree = &msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK]; in metaslab_sync_done()
1961 ASSERT0(range_tree_space(msp->ms_alloctree[txg & TXG_MASK])); in metaslab_sync_done()
[all …]
H A Ddsl_pool.c498 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync()
558 if (list_head(&mos->os_dirty_dnodes[txg & TXG_MASK]) != NULL || in dsl_pool_sync()
559 list_head(&mos->os_free_dnodes[txg & TXG_MASK]) != NULL) { in dsl_pool_sync()
651 dp->dp_dirty_pertxg[tx->tx_txg & TXG_MASK] += space; in dsl_pool_dirty_space()
664 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) { in dsl_pool_undirty_space()
666 space = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_undirty_space()
668 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space); in dsl_pool_undirty_space()
669 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space; in dsl_pool_undirty_space()
H A Ddsl_dir.c1028 ASSERT0(dd->dd_tempreserved[tx->tx_txg&TXG_MASK]); in dsl_dir_sync()
1030 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] / 1024); in dsl_dir_sync()
1031 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] = 0; in dsl_dir_sync()
1047 space += dd->dd_space_towrite[i&TXG_MASK]; in dsl_dir_space_towrite()
1048 ASSERT3U(dd->dd_space_towrite[i&TXG_MASK], >=, 0); in dsl_dir_space_towrite()
1136 int txgidx = txg & TXG_MASK; in dsl_dir_tempreserve_impl()
1310 int txgidx = tx->tx_txg & TXG_MASK; in dsl_dir_tempreserve_clear()
1350 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] += space; in dsl_dir_willuse_space()
H A Dzil.c1223 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async()
1276 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign()
1340 itxg_t *itxg = &zilog->zl_itxg[synced_txg & TXG_MASK]; in zil_clean()
1384 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_get_commit_list()
1418 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_async_to_sync()
1594 uint64_t *replayed_seq = &zilog->zl_replayed_seq[txg & TXG_MASK]; in zil_sync()
2114 zilog->zl_replayed_seq[dmu_tx_get_txg(tx) & TXG_MASK] = in zil_replaying()
H A Ddmu_object.c197 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
H A Ddnode_sync.c43 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection()
487 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free()
549 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync()
H A Ddmu_objset.c832 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl()
1176 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync()
1209 return (!list_is_empty(&os->os_dirty_dnodes[txg & TXG_MASK]) || in dmu_objset_is_dirty()
1210 !list_is_empty(&os->os_free_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
H A Ddsl_dataset.c1646 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync()
1649 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1652 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1655 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1656 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1657 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1658 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
H A Ddbuf.c1147 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty()
1236 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty()
1237 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty()
1483 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty()
2798 list_insert_tail(&dn->dn_dirty_records[txg&TXG_MASK], dr); in dbuf_sync_leaf()
H A Ddmu_send.c1873 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
H A Dzio.c802 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
H A Dspa.c6233 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK]; in spa_sync()
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Dtxg.h41 #define TXG_MASK (TXG_SIZE - 1) /* mask for size */ macro
43 #define TXG_IDX (txg & TXG_MASK)