Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dtxg.c335 tc->tc_count[txg & TXG_MASK]++; in txg_hold_open()
357 int g = th->th_txg & TXG_MASK; in txg_register_callbacks()
368 int g = th->th_txg & TXG_MASK; in txg_rele_to_sync()
390 int g = txg & TXG_MASK; in txg_quiesce()
461 int g = txg & TXG_MASK; in txg_dispatch_callbacks()
872 return (tl->tl_head[txg & TXG_MASK] == NULL); in txg_list_empty()
920 int t = txg & TXG_MASK; in txg_list_add()
945 int t = txg & TXG_MASK; in txg_list_add_tail()
973 int t = txg & TXG_MASK; in txg_list_remove()
998 int t = txg & TXG_MASK; in txg_list_remove_this()
[all...]
H A Ddsl_pool.c618 aggsum_add(&dp->dp_wrlog_pertxg[txg & TXG_MASK], size); in dsl_pool_wrlog_count()
624 if (aggsum_compare(&dp->dp_wrlog_pertxg[txg & TXG_MASK], sync_min) > 0) in dsl_pool_wrlog_count()
641 delta = -(int64_t)aggsum_value(&dp->dp_wrlog_pertxg[txg & TXG_MASK]); in dsl_pool_wrlog_clear()
642 aggsum_add(&dp->dp_wrlog_pertxg[txg & TXG_MASK], delta); in dsl_pool_wrlog_clear()
645 (void) aggsum_value(&dp->dp_wrlog_pertxg[txg & TXG_MASK]); in dsl_pool_wrlog_clear()
730 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0); in dsl_pool_sync()
731 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0; in dsl_pool_sync()
767 !os->os_next_write_raw[txg & TXG_MASK]) { in dsl_pool_sync()
787 !os->os_next_write_raw[txg & TXG_MASK]) { in dsl_pool_sync()
833 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync()
[all …]
H A Ddnode.c529 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = DN_ZERO_BONUSLEN; in dnode_setbonuslen()
531 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_setbonuslen()
542 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_setbonus_type()
563 dn->dn_rm_spillblk[tx->tx_txg & TXG_MASK] = DN_KILL_SPILLBLK; in dnode_rm_spill()
799 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate()
800 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_allocate()
801 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_allocate()
802 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = dn->dn_datablksz; in dnode_allocate()
843 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = blocksize; in dnode_reallocate()
846 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = bonuslen; in dnode_reallocate()
[all …]
H A Dvdev_rebuild.c201 if (vr->vr_scan_offset[txg & TXG_MASK] > 0) { in vdev_rebuild_update_sync()
202 vrp->vrp_last_offset = vr->vr_scan_offset[txg & TXG_MASK]; in vdev_rebuild_update_sync()
203 vr->vr_scan_offset[txg & TXG_MASK] = 0; in vdev_rebuild_update_sync()
501 uint64_t *off = &vr->vr_scan_offset[zio->io_txg & TXG_MASK]; in vdev_rebuild_cb()
601 if (vr->vr_scan_offset[txg & TXG_MASK] == 0) { in vdev_rebuild_range()
602 vr->vr_scan_offset[txg & TXG_MASK] = start; in vdev_rebuild_range()
621 vr->vr_scan_offset[txg & TXG_MASK] = start + size; in vdev_rebuild_range()
625 zio_nowait(zio_read(spa->spa_txg_zio[txg & TXG_MASK], spa, &blk, in vdev_rebuild_range()
H A Dvdev_initialize.c75 uint64_t last_offset = vd->vdev_initialize_offset[txg & TXG_MASK]; in vdev_initialize_zap_update_sync()
76 vd->vdev_initialize_offset[txg & TXG_MASK] = 0; in vdev_initialize_zap_update_sync()
215 &vd->vdev_initialize_offset[zio->io_txg & TXG_MASK]; in vdev_initialize_cb()
258 if (vd->vdev_initialize_offset[txg & TXG_MASK] == 0) { in vdev_initialize_write()
283 vd->vdev_initialize_offset[txg & TXG_MASK] = start + size; in vdev_initialize_write()
284 zio_nowait(zio_write_phys(spa->spa_txg_zio[txg & TXG_MASK], vd, start, in vdev_initialize_write()
H A Dvdev_removal.c733 int txgoff = (txg + i) & TXG_MASK; in free_from_removing_vdev()
792 svr->svr_bytes_done[txg & TXG_MASK] += inflight_size; in free_from_removing_vdev()
795 ASSERT0(svr->svr_max_offset_to_sync[TXG_CLEAN(txg) & TXG_MASK]); in free_from_removing_vdev()
816 svr->svr_bytes_done[txg & TXG_MASK] += size; in free_from_removing_vdev()
909 &svr->svr_new_segments[txg & TXG_MASK], tx); in vdev_mapping_sync()
918 range_tree_vacate(svr->svr_frees[txg & TXG_MASK], in vdev_mapping_sync()
920 ASSERT3U(svr->svr_max_offset_to_sync[txg & TXG_MASK], >=, in vdev_mapping_sync()
922 svr->svr_max_offset_to_sync[txg & TXG_MASK] = 0; in vdev_mapping_sync()
1232 zio_t *nzio = zio_null(spa->spa_txg_zio[txg & TXG_MASK], spa, NULL, in spa_vdev_copy_segment()
1247 list_insert_tail(&svr->svr_new_segments[txg & TXG_MASK], entry); in spa_vdev_copy_segment()
[all …]
H A Ddmu_redact.c523 list_t *list = &md->md_blocks[txg & TXG_MASK]; in redaction_list_update_sync()
525 &md->md_furthest[txg & TXG_MASK]; in redaction_list_update_sync()
559 md->md_synctask_txg[txg & TXG_MASK] = B_FALSE; in redaction_list_update_sync()
572 if (!md->md_synctask_txg[txg & TXG_MASK]) { in commit_rl_updates()
575 md->md_synctask_txg[txg & TXG_MASK] = B_TRUE; in commit_rl_updates()
578 md->md_furthest[txg & TXG_MASK].rbp_object = object; in commit_rl_updates()
579 md->md_furthest[txg & TXG_MASK].rbp_blkid = blkid; in commit_rl_updates()
580 list_move_tail(&md->md_blocks[txg & TXG_MASK], in commit_rl_updates()
H A Dzil.c921 if (txg_list_member(&dp->dp_dirty_zilogs, zilog, txg & TXG_MASK)) in zilog_is_dirty_in_txg()
1199 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in zil_claim()
1229 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in zil_claim()
1521 ASSERT3U(zilog->zl_lwb_inflight[txg & TXG_MASK], >, 0); in zil_lwb_flush_vdevs_done()
1522 zilog->zl_lwb_inflight[txg & TXG_MASK]--; in zil_lwb_flush_vdevs_done()
1523 if (zilog->zl_lwb_inflight[txg & TXG_MASK] == 0) in zil_lwb_flush_vdevs_done()
1538 while (zilog->zl_lwb_inflight[txg & TXG_MASK] > 0) in zil_lwb_flush_wait_all()
2008 zilog->zl_lwb_inflight[txg & TXG_MASK]++; in zil_lwb_write_issue()
2516 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async()
2560 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign()
[all …]
H A Dvdev_trim.c232 uint64_t last_offset = vd->vdev_trim_offset[txg & TXG_MASK]; in vdev_trim_zap_update_sync()
233 vd->vdev_trim_offset[txg & TXG_MASK] = 0; in vdev_trim_zap_update_sync()
401 &vd->vdev_trim_offset[zio->io_txg & TXG_MASK]; in vdev_trim_cb()
536 vd->vdev_trim_offset[txg & TXG_MASK] == 0) { in vdev_trim_range()
564 vd->vdev_trim_offset[txg & TXG_MASK] = start + size; in vdev_trim_range()
574 zio_nowait(zio_trim(spa->spa_txg_zio[txg & TXG_MASK], vd, in vdev_trim_range()
H A Ddsl_dir.c1176 ASSERT0(dd->dd_tempreserved[tx->tx_txg & TXG_MASK]); in dsl_dir_sync()
1178 (u_longlong_t)dd->dd_space_towrite[tx->tx_txg & TXG_MASK] / 1024); in dsl_dir_sync()
1179 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] = 0; in dsl_dir_sync()
1194 space += dd->dd_space_towrite[i & TXG_MASK]; in dsl_dir_space_towrite()
1385 dd->dd_tempreserved[txg & TXG_MASK] += asize; in dsl_dir_tempreserve_impl()
1481 int txgidx = tx->tx_txg & TXG_MASK; in dsl_dir_tempreserve_clear()
1525 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] += space; in dsl_dir_willuse_space()
H A Ddnode_sync.c45 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection()
577 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free()
644 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync()
H A Ddsl_dataset.c1301 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in dsl_dataset_zero_zil()
1483 !os->os_next_write_raw[tx->tx_txg & TXG_MASK]) { in dsl_dataset_dirty()
2118 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync()
2121 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2124 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2127 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync()
2128 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2129 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2130 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
2299 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_FALSE; in dsl_dataset_sync_done()
[all …]
H A Dmetaslab.c1991 range_tree_space(msp->ms_allocating[(txg + t) & TXG_MASK]); in metaslab_verify_space()
3734 range_tree_walk(msp->ms_allocating[(txg + t) & TXG_MASK], in metaslab_condense()
4025 range_tree_t *alloctree = msp->ms_allocating[txg & TXG_MASK]; in metaslab_sync()
4276 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync()
4278 & TXG_MASK])); in metaslab_sync()
4305 msp->ms_allocating[(txg + t) & TXG_MASK])); in metaslab_evict()
4440 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync_done()
4670 if (range_tree_is_empty(msp->ms_allocating[txg & TXG_MASK])) in metaslab_block_alloc()
4673 range_tree_add(msp->ms_allocating[txg & TXG_MASK], start, size); in metaslab_block_alloc()
5626 range_tree_remove(msp->ms_allocating[txg & TXG_MASK], in metaslab_unalloc_dva()
[all …]
H A Dbrt.c1169 avl_tree_t *pending_tree = &brtvd->bv_pending_tree[txg & TXG_MASK]; in brt_pending_add()
1210 avl_tree_t *pending_tree = &brtvd->bv_pending_tree[txg & TXG_MASK]; in brt_pending_remove()
1239 avl_swap(&brtvd->bv_tree, &brtvd->bv_pending_tree[txg & TXG_MASK]); in brt_pending_apply_vdev()
H A Dvdev_indirect.c553 &sci->sci_new_mapping_entries[txg & TXG_MASK], tx); in spa_condense_indirect_commit_sync()
554 ASSERT(list_is_empty(&sci->sci_new_mapping_entries[txg & TXG_MASK])); in spa_condense_indirect_commit_sync()
572 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in spa_condense_indirect_commit_entry()
H A Ddmu_object.c480 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
H A Ddmu_objset.c1132 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl_dnstats()
1707 int txgoff = tx->tx_txg & TXG_MASK; in sync_meta_dnode_task()
1779 os->os_next_write_raw[tx->tx_txg & TXG_MASK]) { in dmu_objset_sync()
1813 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync()
1877 return (!multilist_is_empty(&os->os_dirty_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
H A Dvdev_raidz.c3708 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in raidz_reflow_sync()
3864 vre->vre_bytes_copied_pertxg[rra->rra_txg & TXG_MASK] += in raidz_reflow_write_done()
3926 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in raidz_reflow_record_progress()
4051 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in raidz_reflow_impl()
4373 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in raidz_reflow_scratch_sync()
4467 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in vdev_raidz_reflow_copy_scratch()
H A Ddbuf.c2194 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty_lightweight()
2244 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty()
2454 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty()
2455 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty()
2615 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty()
4829 list_insert_tail(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_sync_leaf()
H A Dspa_stats.c414 ts->ndirty = dp->dp_dirty_pertxg[txg & TXG_MASK]; in spa_txg_history_init_io()
H A Ddmu.c1063 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK]; in dmu_free_long_range_impl()
1090 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] += in dmu_free_long_range_impl()
H A Dspa.c9943 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK];
10118 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]);
10119 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL,
10228 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
H A Ddsl_crypt.c2141 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in dsl_crypto_recv_raw_objset_sync()
H A Ddmu_recv.c1611 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dtxg.h41 #define TXG_MASK (TXG_SIZE - 1) /* mask for size */ macro
43 #define TXG_IDX (txg & TXG_MASK)

12