Lines Matching refs:txgoff
45 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection() local
48 int new_level = dn->dn_next_nlevels[txgoff]; in dnode_increase_indirection()
563 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free() local
574 dnode_undirty_dbufs(&dn->dn_dirty_records[txgoff]); in dnode_sync_free()
588 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync_free()
589 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync_free()
590 dn->dn_next_blksz[txgoff] = 0; in dnode_sync_free()
591 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync_free()
629 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync() local
630 list_t *list = &dn->dn_dirty_records[txgoff]; in dnode_sync()
696 if (dn->dn_next_type[txgoff] != 0) { in dnode_sync()
698 dn->dn_next_type[txgoff] = 0; in dnode_sync()
701 if (dn->dn_next_blksz[txgoff] != 0) { in dnode_sync()
702 ASSERT(P2PHASE(dn->dn_next_blksz[txgoff], in dnode_sync()
706 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT == in dnode_sync()
708 !range_tree_is_empty(dn->dn_free_ranges[txgoff])); in dnode_sync()
710 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT; in dnode_sync()
711 dn->dn_next_blksz[txgoff] = 0; in dnode_sync()
714 if (dn->dn_next_bonuslen[txgoff] != 0) { in dnode_sync()
715 if (dn->dn_next_bonuslen[txgoff] == DN_ZERO_BONUSLEN) in dnode_sync()
718 dnp->dn_bonuslen = dn->dn_next_bonuslen[txgoff]; in dnode_sync()
721 dn->dn_next_bonuslen[txgoff] = 0; in dnode_sync()
724 if (dn->dn_next_bonustype[txgoff] != 0) { in dnode_sync()
725 ASSERT(DMU_OT_IS_VALID(dn->dn_next_bonustype[txgoff])); in dnode_sync()
726 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; in dnode_sync()
727 dn->dn_next_bonustype[txgoff] = 0; in dnode_sync()
737 if (dn->dn_rm_spillblk[txgoff] || freeing_dnode) { in dnode_sync()
740 dn->dn_rm_spillblk[txgoff] = 0; in dnode_sync()
743 if (dn->dn_next_indblkshift[txgoff] != 0) { in dnode_sync()
745 dnp->dn_indblkshift = dn->dn_next_indblkshift[txgoff]; in dnode_sync()
746 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync()
767 if (dn->dn_free_ranges[txgoff] != NULL) { in dnode_sync()
774 ASSERT(range_tree_contains(dn->dn_free_ranges[txgoff], in dnode_sync()
785 range_tree_walk(dn->dn_free_ranges[txgoff], in dnode_sync()
787 range_tree_vacate(dn->dn_free_ranges[txgoff], NULL, NULL); in dnode_sync()
788 range_tree_destroy(dn->dn_free_ranges[txgoff]); in dnode_sync()
789 dn->dn_free_ranges[txgoff] = NULL; in dnode_sync()
807 if (dn->dn_next_nlevels[txgoff]) { in dnode_sync()
809 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync()
817 if (dn->dn_next_maxblkid[txgoff]) { in dnode_sync()
820 dn->dn_next_maxblkid[txgoff] & ~DMU_NEXT_MAXBLKID_SET; in dnode_sync()
821 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync()
825 if (dn->dn_next_nblkptr[txgoff]) { in dnode_sync()
828 if (dn->dn_next_nblkptr[txgoff] > dnp->dn_nblkptr) { in dnode_sync()
832 (dn->dn_next_nblkptr[txgoff] - dnp->dn_nblkptr)); in dnode_sync()
836 ASSERT(dn->dn_next_nblkptr[txgoff] < dnp->dn_nblkptr); in dnode_sync()
839 if (i >= dn->dn_next_nblkptr[txgoff]) in dnode_sync()
845 dnp->dn_nblkptr = dn->dn_next_nblkptr[txgoff]; in dnode_sync()
846 dn->dn_next_nblkptr[txgoff] = 0; in dnode_sync()