| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | txg.c | 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() 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() 1022 int t = txg & TXG_MASK; in txg_list_member() 1035 int t = txg & TXG_MASK; in txg_list_head() [all …]
|
| H A D | dsl_pool.c | 617 aggsum_add(&dp->dp_wrlog_pertxg[txg & TXG_MASK], size); in dsl_pool_wrlog_count() 641 aggsum_add(&dp->dp_wrlog_pertxg[txg & TXG_MASK], delta); in dsl_pool_wrlog_clear() 728 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0); in dsl_pool_sync() 729 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0; in dsl_pool_sync() 765 !os->os_next_write_raw[txg & TXG_MASK]) { in dsl_pool_sync() 785 !os->os_next_write_raw[txg & TXG_MASK]) { in dsl_pool_sync() 982 uint64_t dirty = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_need_dirty_sync() 992 dp->dp_dirty_pertxg[tx->tx_txg & TXG_MASK] += space; in dsl_pool_dirty_space() 1011 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) { in dsl_pool_undirty_space() 1013 space = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_undirty_space() [all …]
|
| H A D | dnode.c | 775 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate() 819 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = blocksize; in dnode_reallocate() 833 dn->dn_next_nblkptr[tx->tx_txg & TXG_MASK] = nblkptr; in dnode_reallocate() 1833 ASSERT0(dn->dn_next_bonuslen[txg & TXG_MASK]); in dnode_setdirty() 1834 ASSERT0(dn->dn_next_blksz[txg & TXG_MASK]); in dnode_setdirty() 1835 ASSERT0(dn->dn_next_bonustype[txg & TXG_MASK]); in dnode_setdirty() 1927 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = size; in dnode_set_blksz() 1933 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_set_blksz() 1947 uint64_t txgoff = tx->tx_txg & TXG_MASK; in dnode_set_nlevels_impl() 2051 dn->dn_next_maxblkid[tx->tx_txg & TXG_MASK] = in dnode_new_blkid() [all …]
|
| H A D | vdev_rebuild.c | 200 if (vr->vr_scan_offset[txg & TXG_MASK] > 0) { in vdev_rebuild_update_sync() 201 vrp->vrp_last_offset = vr->vr_scan_offset[txg & TXG_MASK]; in vdev_rebuild_update_sync() 202 vr->vr_scan_offset[txg & TXG_MASK] = 0; in vdev_rebuild_update_sync() 496 uint64_t *off = &vr->vr_scan_offset[zio->io_txg & TXG_MASK]; in vdev_rebuild_cb() 596 if (vr->vr_scan_offset[txg & TXG_MASK] == 0) { in vdev_rebuild_range() 597 vr->vr_scan_offset[txg & TXG_MASK] = start; in vdev_rebuild_range() 616 vr->vr_scan_offset[txg & TXG_MASK] = start + size; in vdev_rebuild_range() 620 zio_nowait(zio_read(spa->spa_txg_zio[txg & TXG_MASK], spa, &blk, in vdev_rebuild_range()
|
| H A D | vdev_initialize.c | 73 uint64_t last_offset = vd->vdev_initialize_offset[txg & TXG_MASK]; in vdev_initialize_zap_update_sync() 74 vd->vdev_initialize_offset[txg & TXG_MASK] = 0; in vdev_initialize_zap_update_sync() 213 &vd->vdev_initialize_offset[zio->io_txg & TXG_MASK]; in vdev_initialize_cb() 256 if (vd->vdev_initialize_offset[txg & TXG_MASK] == 0) { in vdev_initialize_write() 281 vd->vdev_initialize_offset[txg & TXG_MASK] = start + size; in vdev_initialize_write() 282 zio_nowait(zio_write_phys(spa->spa_txg_zio[txg & TXG_MASK], vd, start, in vdev_initialize_write()
|
| H A D | dmu_redact.c | 521 list_t *list = &md->md_blocks[txg & TXG_MASK]; in redaction_list_update_sync() 523 &md->md_furthest[txg & TXG_MASK]; in redaction_list_update_sync() 557 md->md_synctask_txg[txg & TXG_MASK] = B_FALSE; in redaction_list_update_sync() 570 if (!md->md_synctask_txg[txg & TXG_MASK]) { in commit_rl_updates() 573 md->md_synctask_txg[txg & TXG_MASK] = B_TRUE; in commit_rl_updates() 576 md->md_furthest[txg & TXG_MASK].rbp_object = object; in commit_rl_updates() 577 md->md_furthest[txg & TXG_MASK].rbp_blkid = blkid; in commit_rl_updates() 578 list_move_tail(&md->md_blocks[txg & TXG_MASK], in commit_rl_updates()
|
| H A D | vdev_removal.c | 733 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() 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() 1505 if (svr->svr_max_offset_to_sync[txg & TXG_MASK] == 0) { in spa_vdev_copy_impl() 1516 svr->svr_bytes_done[txg & TXG_MASK] += range_tree_space(segs); in spa_vdev_copy_impl() 1962 svr->svr_bytes_done[dmu_tx_get_txg(tx) & TXG_MASK] = 0; in spa_vdev_remove_cancel_sync() [all …]
|
| H A D | zil.c | 1185 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in zil_claim() 1509 ASSERT3U(zilog->zl_lwb_inflight[txg & TXG_MASK], >, 0); in zil_lwb_flush_vdevs_done() 1510 zilog->zl_lwb_inflight[txg & TXG_MASK]--; in zil_lwb_flush_vdevs_done() 1511 if (zilog->zl_lwb_inflight[txg & TXG_MASK] == 0) in zil_lwb_flush_vdevs_done() 1526 while (zilog->zl_lwb_inflight[txg & TXG_MASK] > 0) in zil_lwb_flush_wait_all() 1998 zilog->zl_lwb_inflight[txg & TXG_MASK]++; in zil_lwb_write_issue() 2506 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async() 2550 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign() 2621 itxg_t *itxg = &zilog->zl_itxg[synced_txg & TXG_MASK]; in zil_clean() 2674 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_get_commit_list() [all …]
|
| H A D | vdev_trim.c | 229 uint64_t last_offset = vd->vdev_trim_offset[txg & TXG_MASK]; in vdev_trim_zap_update_sync() 230 vd->vdev_trim_offset[txg & TXG_MASK] = 0; in vdev_trim_zap_update_sync() 398 &vd->vdev_trim_offset[zio->io_txg & TXG_MASK]; in vdev_trim_cb() 533 vd->vdev_trim_offset[txg & TXG_MASK] == 0) { in vdev_trim_range() 561 vd->vdev_trim_offset[txg & TXG_MASK] = start + size; in vdev_trim_range() 571 zio_nowait(zio_trim(spa->spa_txg_zio[txg & TXG_MASK], vd, in vdev_trim_range()
|
| H A D | brt.c | 1393 pending_tree = &brt->brt_pending_tree[txg & TXG_MASK]; in brt_pending_add() 1394 pending_lock = &brt->brt_pending_lock[txg & TXG_MASK]; in brt_pending_add() 1436 pending_tree = &brt->brt_pending_tree[txg & TXG_MASK]; in brt_pending_remove() 1437 pending_lock = &brt->brt_pending_lock[txg & TXG_MASK]; in brt_pending_remove() 1472 pending_tree = &brt->brt_pending_tree[txg & TXG_MASK]; in brt_pending_apply()
|
| H A D | dsl_dir.c | 1173 ASSERT0(dd->dd_tempreserved[tx->tx_txg & TXG_MASK]); in dsl_dir_sync() 1175 (u_longlong_t)dd->dd_space_towrite[tx->tx_txg & TXG_MASK] / 1024); in dsl_dir_sync() 1176 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] = 0; in dsl_dir_sync() 1191 space += dd->dd_space_towrite[i & TXG_MASK]; in dsl_dir_space_towrite() 1382 dd->dd_tempreserved[txg & TXG_MASK] += asize; in dsl_dir_tempreserve_impl() 1478 int txgidx = tx->tx_txg & TXG_MASK; in dsl_dir_tempreserve_clear() 1522 dd->dd_space_towrite[tx->tx_txg & TXG_MASK] += space; in dsl_dir_willuse_space()
|
| H A D | dnode_sync.c | 45 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection() 570 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free() 636 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync()
|
| H A D | metaslab.c | 1949 range_tree_space(msp->ms_allocating[(txg + t) & TXG_MASK]); in metaslab_verify_space() 3692 range_tree_walk(msp->ms_allocating[(txg + t) & TXG_MASK], in metaslab_condense() 3983 range_tree_t *alloctree = msp->ms_allocating[txg & TXG_MASK]; in metaslab_sync() 4234 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync() 4236 & TXG_MASK])); in metaslab_sync() 4263 msp->ms_allocating[(txg + t) & TXG_MASK])); in metaslab_evict() 4397 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync_done() 4626 if (range_tree_is_empty(msp->ms_allocating[txg & TXG_MASK])) in metaslab_block_alloc() 5581 range_tree_remove(msp->ms_allocating[txg & TXG_MASK], in metaslab_unalloc_dva() 5714 if (range_tree_is_empty(msp->ms_allocating[txg & TXG_MASK])) in metaslab_claim_concrete() [all …]
|
| H A D | dsl_dataset.c | 1270 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in dsl_dataset_zero_zil() 1452 !os->os_next_write_raw[tx->tx_txg & TXG_MASK]) { in dsl_dataset_dirty() 2086 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync() 2089 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 2092 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 2095 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 2096 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync() 2097 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync() 2098 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync() 2267 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_FALSE; in dsl_dataset_sync_done() [all …]
|
| H A D | vdev_indirect.c | 552 &sci->sci_new_mapping_entries[txg & TXG_MASK], tx); in spa_condense_indirect_commit_sync() 553 ASSERT(list_is_empty(&sci->sci_new_mapping_entries[txg & TXG_MASK])); in spa_condense_indirect_commit_sync() 571 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in spa_condense_indirect_commit_entry()
|
| H A D | dmu_object.c | 480 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
|
| H A D | dmu_objset.c | 1126 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl_dnstats() 1711 os->os_next_write_raw[tx->tx_txg & TXG_MASK]) { in dmu_objset_sync() 1745 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync() 1799 return (!multilist_is_empty(&os->os_dirty_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
|
| H A D | dbuf.c | 2161 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty_lightweight() 2211 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty() 2420 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty() 2421 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty() 2575 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty() 4595 list_insert_tail(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_sync_leaf()
|
| H A D | spa_stats.c | 414 ts->ndirty = dp->dp_dirty_pertxg[txg & TXG_MASK]; in spa_txg_history_init_io()
|
| H A D | dmu.c | 953 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK]; in dmu_free_long_range_impl() 980 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] += in dmu_free_long_range_impl()
|
| H A D | spa.c | 9636 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK]; 9790 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]); 9791 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL, 9900 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
|
| H A D | dsl_crypt.c | 2141 os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE; in dsl_crypto_recv_raw_objset_sync()
|
| H A D | dmu_recv.c | 1571 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
|
| H A D | zio.c | 1351 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | txg.h | 41 #define TXG_MASK (TXG_SIZE - 1) /* mask for size */ macro 43 #define TXG_IDX (txg & TXG_MASK)
|