Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dtxg.c307 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
329 int g = th->th_txg & TXG_MASK; in txg_register_callbacks()
340 int g = th->th_txg & TXG_MASK; in txg_rele_to_sync()
361 int g = txg & TXG_MASK; in txg_quiesce()
428 int g = txg & TXG_MASK; in txg_dispatch_callbacks()
816 return (tl->tl_head[txg & TXG_MASK] == NULL);
844 int t = txg & TXG_MASK;
869 int t = txg & TXG_MASK;
897 int t = txg & TXG_MASK;
922 int t = txg & TXG_MASK;
[all …]
Ddnode.c403 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = DN_ZERO_BONUSLEN; in dnode_setbonuslen()
405 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_setbonuslen()
416 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_setbonus_type()
426 dn->dn_rm_spillblk[tx->tx_txg&TXG_MASK] = DN_KILL_SPILLBLK; in dnode_rm_spill()
663 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate()
664 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_allocate()
665 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_allocate()
666 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = dn->dn_datablksz; in dnode_allocate()
705 dn->dn_next_blksz[tx->tx_txg&TXG_MASK] = blocksize; in dnode_reallocate()
708 dn->dn_next_bonuslen[tx->tx_txg&TXG_MASK] = bonuslen; in dnode_reallocate()
[all …]
Dvdev_removal.c547 int txgoff = (txg + i) & TXG_MASK; in free_from_removing_vdev()
606 svr->svr_bytes_done[txg & TXG_MASK] += inflight_size; in free_from_removing_vdev()
609 ASSERT0(svr->svr_max_offset_to_sync[TXG_CLEAN(txg) & TXG_MASK]); in free_from_removing_vdev()
630 svr->svr_bytes_done[txg & TXG_MASK] += size; in free_from_removing_vdev()
721 &svr->svr_new_segments[txg & TXG_MASK], tx); in vdev_mapping_sync()
730 range_tree_vacate(svr->svr_frees[txg & TXG_MASK], in vdev_mapping_sync()
732 ASSERT3U(svr->svr_max_offset_to_sync[txg & TXG_MASK], >=, in vdev_mapping_sync()
734 svr->svr_max_offset_to_sync[txg & TXG_MASK] = 0; in vdev_mapping_sync()
1010 zio_t *nzio = zio_null(spa->spa_txg_zio[txg & TXG_MASK], spa, NULL, in spa_vdev_copy_segment()
1025 list_insert_tail(&svr->svr_new_segments[txg & TXG_MASK], entry); in spa_vdev_copy_segment()
[all …]
Dvdev_initialize.c79 uint64_t last_offset = vd->vdev_initialize_offset[txg & TXG_MASK]; in vdev_initialize_zap_update_sync()
80 vd->vdev_initialize_offset[txg & TXG_MASK] = 0; in vdev_initialize_zap_update_sync()
169 &vd->vdev_initialize_offset[zio->io_txg & TXG_MASK]; in vdev_initialize_cb()
212 if (vd->vdev_initialize_offset[txg & TXG_MASK] == 0) { in vdev_initialize_write()
238 vd->vdev_initialize_offset[txg & TXG_MASK] = start + size; in vdev_initialize_write()
239 zio_nowait(zio_write_phys(spa->spa_txg_zio[txg & TXG_MASK], vd, start, in vdev_initialize_write()
Ddsl_pool.c736 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync()
744 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0); in dsl_pool_sync()
745 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0; in dsl_pool_sync()
805 if (!multilist_is_empty(mos->os_dirty_dnodes[txg & TXG_MASK])) { in dsl_pool_sync()
951 dp->dp_dirty_pertxg[tx->tx_txg & TXG_MASK] += space; in dsl_pool_dirty_space()
964 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) { in dsl_pool_undirty_space()
966 space = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_undirty_space()
968 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space); in dsl_pool_undirty_space()
969 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space; in dsl_pool_undirty_space()
Ddsl_dir.c1157 ASSERT0(dd->dd_tempreserved[tx->tx_txg&TXG_MASK]); in dsl_dir_sync()
1159 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] / 1024); in dsl_dir_sync()
1160 dd->dd_space_towrite[tx->tx_txg&TXG_MASK] = 0; in dsl_dir_sync()
1175 space += dd->dd_space_towrite[i & TXG_MASK]; in dsl_dir_space_towrite()
1176 ASSERT3U(dd->dd_space_towrite[i & TXG_MASK], >=, 0); in dsl_dir_space_towrite()
1347 dd->dd_tempreserved[txg & TXG_MASK] += asize; in dsl_dir_tempreserve_impl()
1436 int txgidx = tx->tx_txg & TXG_MASK; in dsl_dir_tempreserve_clear()
1476 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] += space; in dsl_dir_willuse_space()
Ddnode_sync.c43 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection()
520 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free()
584 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync()
Dmetaslab.c635 range_tree_space(msp->ms_allocating[(txg + t) & TXG_MASK]); in metaslab_verify_space()
2734 range_tree_walk(msp->ms_allocating[(txg + t) & TXG_MASK], in metaslab_condense()
2781 range_tree_t *alloctree = msp->ms_allocating[txg & TXG_MASK]; in metaslab_sync()
2978 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync()
2980 & TXG_MASK])); in metaslab_sync()
3123 msp->ms_allocating[(txg + t) & TXG_MASK])); in metaslab_sync_done()
3134 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync_done()
3413 if (range_tree_is_empty(msp->ms_allocating[txg & TXG_MASK])) in metaslab_block_alloc()
3416 range_tree_add(msp->ms_allocating[txg & TXG_MASK], start, size); in metaslab_block_alloc()
4201 range_tree_remove(msp->ms_allocating[txg & TXG_MASK], in metaslab_unalloc_dva()
[all …]
Dzil.c598 if (txg_list_member(&dp->dp_dirty_zilogs, zilog, txg & TXG_MASK)) in zilog_is_dirty_in_txg()
1815 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async()
1869 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign()
1938 itxg_t *itxg = &zilog->zl_itxg[synced_txg & TXG_MASK]; in zil_clean()
1990 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_get_commit_list()
2035 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_async_to_sync()
2919 uint64_t *replayed_seq = &zilog->zl_replayed_seq[txg & TXG_MASK]; in zil_sync()
3481 zilog->zl_replayed_seq[dmu_tx_get_txg(tx) & TXG_MASK] = in zil_replaying()
Dvdev_indirect.c550 &sci->sci_new_mapping_entries[txg & TXG_MASK], tx); in spa_condense_indirect_commit_sync()
551 ASSERT(list_is_empty(&sci->sci_new_mapping_entries[txg & TXG_MASK])); in spa_condense_indirect_commit_sync()
569 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in spa_condense_indirect_commit_entry()
Ddmu_object.c418 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
Ddsl_dataset.c1763 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync()
1766 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1769 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1772 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
1773 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1774 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
1775 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
Ddmu_objset.c940 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl()
1460 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync()
1519 return (!multilist_is_empty(os->os_dirty_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
Ddbuf.c1733 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty()
1954 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty()
1955 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty()
2085 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty()
3645 list_insert_tail(&dn->dn_dirty_records[txg&TXG_MASK], dr); in dbuf_sync_leaf()
Ddmu.c837 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK]; in dmu_free_long_range_impl()
863 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] += in dmu_free_long_range_impl()
Dspa.c8366 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK];
8383 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]);
8384 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL,
8605 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
Ddmu_send.c2146 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
Dzio.c992 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Dtxg.h41 #define TXG_MASK (TXG_SIZE - 1) /* mask for size */ macro
43 #define TXG_IDX (txg & TXG_MASK)