Home
last modified time | relevance | path

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

/titanic_50/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.c363 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = DN_ZERO_BONUSLEN; in dnode_setbonuslen()
365 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_setbonuslen()
376 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_setbonus_type()
386 dn->dn_rm_spillblk[tx->tx_txg&TXG_MASK] = DN_KILL_SPILLBLK; in dnode_rm_spill()
612 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate()
613 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_allocate()
614 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_allocate()
615 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = dn->dn_datablksz; in dnode_allocate()
649 dn->dn_next_blksz[tx->tx_txg&TXG_MASK] = blocksize; in dnode_reallocate()
652 dn->dn_next_bonuslen[tx->tx_txg&TXG_MASK] = bonuslen; in dnode_reallocate()
[all …]
H A Dmetaslab.c1700 range_tree_t *freetree = msp->ms_freetree[txg & TXG_MASK]; in metaslab_condense()
1741 range_tree_walk(msp->ms_alloctree[(txg + t) & TXG_MASK], in metaslab_condense()
1788 range_tree_t *alloctree = msp->ms_alloctree[txg & TXG_MASK]; in metaslab_sync()
1789 range_tree_t **freetree = &msp->ms_freetree[txg & TXG_MASK]; in metaslab_sync()
1791 &msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK]; in metaslab_sync()
1898 ASSERT0(range_tree_space(msp->ms_alloctree[txg & TXG_MASK])); in metaslab_sync()
1899 ASSERT0(range_tree_space(msp->ms_freetree[txg & TXG_MASK])); in metaslab_sync()
1933 if (msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK] == NULL) { in metaslab_sync_done()
1954 freed_tree = &msp->ms_freetree[TXG_CLEAN(txg) & TXG_MASK]; in metaslab_sync_done()
1963 ASSERT0(range_tree_space(msp->ms_alloctree[txg & TXG_MASK])); in metaslab_sync_done()
[all …]
H A Ddsl_pool.c499 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync()
559 if (list_head(&mos->os_dirty_dnodes[txg & TXG_MASK]) != NULL || in dsl_pool_sync()
560 list_head(&mos->os_free_dnodes[txg & TXG_MASK]) != NULL) { in dsl_pool_sync()
652 dp->dp_dirty_pertxg[tx->tx_txg & TXG_MASK] += space; in dsl_pool_dirty_space()
665 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) { in dsl_pool_undirty_space()
667 space = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_undirty_space()
669 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space); in dsl_pool_undirty_space()
670 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space; in dsl_pool_undirty_space()
H A Ddsl_dir.c1024 ASSERT0(dd->dd_tempreserved[tx->tx_txg&TXG_MASK]); in dsl_dir_sync()
1026 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] / 1024); in dsl_dir_sync()
1027 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] = 0; in dsl_dir_sync()
1043 space += dd->dd_space_towrite[i&TXG_MASK]; in dsl_dir_space_towrite()
1044 ASSERT3U(dd->dd_space_towrite[i&TXG_MASK], >=, 0); in dsl_dir_space_towrite()
1132 int txgidx = txg & TXG_MASK; in dsl_dir_tempreserve_impl()
1306 int txgidx = tx->tx_txg & TXG_MASK; in dsl_dir_tempreserve_clear()
1346 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] += space; in dsl_dir_willuse_space()
H A Dzil.c1224 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async()
1277 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign()
1341 itxg_t *itxg = &zilog->zl_itxg[synced_txg & TXG_MASK]; in zil_clean()
1385 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_get_commit_list()
1419 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_async_to_sync()
1595 uint64_t *replayed_seq = &zilog->zl_replayed_seq[txg & TXG_MASK]; in zil_sync()
2115 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.c801 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl()
1145 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync()
1178 return (!list_is_empty(&os->os_dirty_dnodes[txg & TXG_MASK]) || in dmu_objset_is_dirty()
1179 !list_is_empty(&os->os_free_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
H A Ddsl_dataset.c1660 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync()
1663 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1666 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1669 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1670 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1671 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1672 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
H A Ddbuf.c1168 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty()
1248 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty()
1249 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty()
1495 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty()
2837 list_insert_tail(&dn->dn_dirty_records[txg&TXG_MASK], dr); in dbuf_sync_leaf()
H A Ddmu_send.c1893 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
H A Dzio.c803 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
H A Dspa.c6275 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK]; in spa_sync()
/titanic_50/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)