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()
570 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free() local
581 dnode_undirty_dbufs(&dn->dn_dirty_records[txgoff]); in dnode_sync_free()
595 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync_free()
596 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync_free()
597 dn->dn_next_blksz[txgoff] = 0; in dnode_sync_free()
598 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync_free()
636 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync() local
637 list_t *list = &dn->dn_dirty_records[txgoff]; in dnode_sync()
703 if (dn->dn_next_type[txgoff] != 0) { in dnode_sync()
705 dn->dn_next_type[txgoff] = 0; in dnode_sync()
708 if (dn->dn_next_blksz[txgoff] != 0) { in dnode_sync()
709 ASSERT(P2PHASE(dn->dn_next_blksz[txgoff], in dnode_sync()
713 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT == in dnode_sync()
715 !range_tree_is_empty(dn->dn_free_ranges[txgoff])); in dnode_sync()
717 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT; in dnode_sync()
718 dn->dn_next_blksz[txgoff] = 0; in dnode_sync()
721 if (dn->dn_next_bonuslen[txgoff] != 0) { in dnode_sync()
722 if (dn->dn_next_bonuslen[txgoff] == DN_ZERO_BONUSLEN) in dnode_sync()
725 dnp->dn_bonuslen = dn->dn_next_bonuslen[txgoff]; in dnode_sync()
728 dn->dn_next_bonuslen[txgoff] = 0; in dnode_sync()
731 if (dn->dn_next_bonustype[txgoff] != 0) { in dnode_sync()
732 ASSERT(DMU_OT_IS_VALID(dn->dn_next_bonustype[txgoff])); in dnode_sync()
733 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; in dnode_sync()
734 dn->dn_next_bonustype[txgoff] = 0; in dnode_sync()
744 if (dn->dn_rm_spillblk[txgoff] || freeing_dnode) { in dnode_sync()
747 dn->dn_rm_spillblk[txgoff] = 0; in dnode_sync()
750 if (dn->dn_next_indblkshift[txgoff] != 0) { in dnode_sync()
752 dnp->dn_indblkshift = dn->dn_next_indblkshift[txgoff]; in dnode_sync()
753 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync()
774 if (dn->dn_free_ranges[txgoff] != NULL) { in dnode_sync()
781 ASSERT(range_tree_contains(dn->dn_free_ranges[txgoff], in dnode_sync()
792 range_tree_walk(dn->dn_free_ranges[txgoff], in dnode_sync()
794 range_tree_vacate(dn->dn_free_ranges[txgoff], NULL, NULL); in dnode_sync()
795 range_tree_destroy(dn->dn_free_ranges[txgoff]); in dnode_sync()
796 dn->dn_free_ranges[txgoff] = NULL; in dnode_sync()
814 if (dn->dn_next_nlevels[txgoff]) { in dnode_sync()
816 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync()
824 if (dn->dn_next_maxblkid[txgoff]) { in dnode_sync()
827 dn->dn_next_maxblkid[txgoff] & ~DMU_NEXT_MAXBLKID_SET; in dnode_sync()
828 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync()
832 if (dn->dn_next_nblkptr[txgoff]) { in dnode_sync()
835 if (dn->dn_next_nblkptr[txgoff] > dnp->dn_nblkptr) { in dnode_sync()
839 (dn->dn_next_nblkptr[txgoff] - dnp->dn_nblkptr)); in dnode_sync()
843 ASSERT(dn->dn_next_nblkptr[txgoff] < dnp->dn_nblkptr); in dnode_sync()
846 if (i >= dn->dn_next_nblkptr[txgoff]) in dnode_sync()
852 dnp->dn_nblkptr = dn->dn_next_nblkptr[txgoff]; in dnode_sync()
853 dn->dn_next_nblkptr[txgoff] = 0; in dnode_sync()