| /freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | txg.c | 307 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() 772 return (tl->tl_head[txg & TXG_MASK] == NULL); in txg_list_empty() 800 int t = txg & TXG_MASK; in txg_list_add() 825 int t = txg & TXG_MASK; in txg_list_add_tail() 853 int t = txg & TXG_MASK; in txg_list_remove() 878 int t = txg & TXG_MASK; in txg_list_remove_this() [all …]
|
| HD | dnode.c | 363 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() 613 dn->dn_next_indblkshift[tx->tx_txg & TXG_MASK] = ibs; in dnode_allocate() 614 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = dn->dn_bonuslen; in dnode_allocate() 615 dn->dn_next_bonustype[tx->tx_txg & TXG_MASK] = dn->dn_bonustype; in dnode_allocate() 616 dn->dn_next_blksz[tx->tx_txg & TXG_MASK] = dn->dn_datablksz; in dnode_allocate() 650 dn->dn_next_blksz[tx->tx_txg&TXG_MASK] = blocksize; in dnode_reallocate() 653 dn->dn_next_bonuslen[tx->tx_txg&TXG_MASK] = bonuslen; in dnode_reallocate() [all …]
|
| HD | vdev_removal.c | 554 int txgoff = (txg + i) & TXG_MASK; in free_from_removing_vdev() 613 svr->svr_bytes_done[txg & TXG_MASK] += inflight_size; in free_from_removing_vdev() 616 ASSERT0(svr->svr_max_offset_to_sync[TXG_CLEAN(txg) & TXG_MASK]); in free_from_removing_vdev() 637 svr->svr_bytes_done[txg & TXG_MASK] += size; in free_from_removing_vdev() 728 &svr->svr_new_segments[txg & TXG_MASK], tx); in vdev_mapping_sync() 737 range_tree_vacate(svr->svr_frees[txg & TXG_MASK], in vdev_mapping_sync() 739 ASSERT3U(svr->svr_max_offset_to_sync[txg & TXG_MASK], >=, in vdev_mapping_sync() 741 svr->svr_max_offset_to_sync[txg & TXG_MASK] = 0; in vdev_mapping_sync() 1014 zio_t *nzio = zio_null(spa->spa_txg_zio[txg & TXG_MASK], spa, NULL, in spa_vdev_copy_segment() 1029 list_insert_tail(&svr->svr_new_segments[txg & TXG_MASK], entry); in spa_vdev_copy_segment() [all …]
|
| HD | vdev_initialize.c | 79 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()
|
| HD | dsl_pool.c | 731 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg); in dsl_pool_sync() 739 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0); in dsl_pool_sync() 740 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0; in dsl_pool_sync() 800 if (!multilist_is_empty(mos->os_dirty_dnodes[txg & TXG_MASK])) { in dsl_pool_sync() 944 dp->dp_dirty_pertxg[tx->tx_txg & TXG_MASK] += space; in dsl_pool_dirty_space() 957 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) { in dsl_pool_undirty_space() 959 space = dp->dp_dirty_pertxg[txg & TXG_MASK]; in dsl_pool_undirty_space() 961 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space); in dsl_pool_undirty_space() 962 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space; in dsl_pool_undirty_space()
|
| HD | dsl_dir.c | 1157 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()
|
| HD | metaslab.c | 615 range_tree_space(msp->ms_allocating[(txg + t) & TXG_MASK]); in metaslab_verify_space() 2361 range_tree_walk(msp->ms_allocating[(txg + t) & TXG_MASK], in metaslab_condense() 2408 range_tree_t *alloctree = msp->ms_allocating[txg & TXG_MASK]; in metaslab_sync() 2596 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync() 2598 & TXG_MASK])); in metaslab_sync() 2737 msp->ms_allocating[(txg + t) & TXG_MASK])); in metaslab_sync_done() 2748 ASSERT0(range_tree_space(msp->ms_allocating[txg & TXG_MASK])); in metaslab_sync_done() 2995 if (range_tree_is_empty(msp->ms_allocating[txg & TXG_MASK])) in metaslab_block_alloc() 2998 range_tree_add(msp->ms_allocating[txg & TXG_MASK], start, size); in metaslab_block_alloc() 3799 range_tree_remove(msp->ms_allocating[txg & TXG_MASK], in metaslab_unalloc_dva() [all …]
|
| HD | zil.c | 596 if (txg_list_member(&dp->dp_dirty_zilogs, zilog, txg & TXG_MASK)) in zilog_is_dirty_in_txg() 1702 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_remove_async() 1756 itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_itx_assign() 1824 itxg_t *itxg = &zilog->zl_itxg[synced_txg & TXG_MASK]; in zil_clean() 1876 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_get_commit_list() 1921 itxg_t *itxg = &zilog->zl_itxg[txg & TXG_MASK]; in zil_async_to_sync() 2799 uint64_t *replayed_seq = &zilog->zl_replayed_seq[txg & TXG_MASK]; in zil_sync() 3360 zilog->zl_replayed_seq[dmu_tx_get_txg(tx) & TXG_MASK] = in zil_replaying()
|
| HD | dnode_sync.c | 43 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection() 520 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free() 582 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync()
|
| HD | dmu_object.c | 229 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
|
| HD | vdev_indirect.c | 527 &sci->sci_new_mapping_entries[txg & TXG_MASK], tx); in spa_condense_indirect_commit_sync() 528 ASSERT(list_is_empty(&sci->sci_new_mapping_entries[txg & TXG_MASK])); in spa_condense_indirect_commit_sync() 546 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in spa_condense_indirect_commit_entry()
|
| HD | dsl_dataset.c | 1767 if (ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] != 0) { in dsl_dataset_sync() 1770 &ds->ds_resume_object[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 1773 &ds->ds_resume_offset[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 1776 &ds->ds_resume_bytes[tx->tx_txg & TXG_MASK], tx)); in dsl_dataset_sync() 1777 ds->ds_resume_object[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync() 1778 ds->ds_resume_offset[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync() 1779 ds->ds_resume_bytes[tx->tx_txg & TXG_MASK] = 0; in dsl_dataset_sync()
|
| HD | dmu_objset.c | 874 mdn->dn_next_nlevels[tx->tx_txg & TXG_MASK] = in dmu_objset_create_impl() 1375 txgoff = tx->tx_txg & TXG_MASK; in dmu_objset_sync() 1434 return (!multilist_is_empty(os->os_dirty_dnodes[txg & TXG_MASK])); in dmu_objset_is_dirty()
|
| HD | dbuf.c | 1524 int txgoff = tx->tx_txg & TXG_MASK; in dbuf_dirty() 1741 dn->dn_next_nlevels[(tx->tx_txg-1) & TXG_MASK] > db->db_level || in dbuf_dirty() 1742 dn->dn_next_nlevels[(tx->tx_txg-2) & TXG_MASK] > db->db_level); in dbuf_dirty() 1872 list_remove(&dn->dn_dirty_records[txg & TXG_MASK], dr); in dbuf_undirty() 3279 list_insert_tail(&dn->dn_dirty_records[txg&TXG_MASK], dr); in dbuf_sync_leaf()
|
| HD | spa.c | 7929 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK]; 7943 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]); 7944 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL, 8154 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
|
| HD | dmu.c | 822 dp->dp_long_free_dirty_pertxg[dmu_tx_get_txg(tx) & TXG_MASK] += in dmu_free_long_range_impl()
|
| HD | dmu_send.c | 2122 int txgoff = dmu_tx_get_txg(tx) & TXG_MASK; in save_resume_state()
|
| HD | zio.c | 989 bplist_append(&spa->spa_free_bplist[txg & TXG_MASK], bp); in zio_free()
|
| /freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| HD | txg.h | 41 #define TXG_MASK (TXG_SIZE - 1) /* mask for size */ macro 43 #define TXG_IDX (txg & TXG_MASK)
|