Lines Matching refs:txgoff
46 int txgoff = tx->tx_txg & TXG_MASK; in dnode_increase_indirection() local
49 int new_level = dn->dn_next_nlevels[txgoff]; in dnode_increase_indirection()
579 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync_free() local
590 dnode_undirty_dbufs(&dn->dn_dirty_records[txgoff]); in dnode_sync_free()
604 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync_free()
605 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync_free()
606 dn->dn_next_blksz[txgoff] = 0; in dnode_sync_free()
607 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync_free()
646 int txgoff = tx->tx_txg & TXG_MASK; in dnode_sync() local
647 list_t *list = &dn->dn_dirty_records[txgoff]; in dnode_sync()
713 if (dn->dn_next_type[txgoff] != 0) { in dnode_sync()
715 dn->dn_next_type[txgoff] = 0; in dnode_sync()
718 if (dn->dn_next_blksz[txgoff] != 0) { in dnode_sync()
719 ASSERT(P2PHASE(dn->dn_next_blksz[txgoff], in dnode_sync()
723 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT == in dnode_sync()
725 !zfs_range_tree_is_empty(dn->dn_free_ranges[txgoff])); in dnode_sync()
727 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT; in dnode_sync()
728 dn->dn_next_blksz[txgoff] = 0; in dnode_sync()
731 if (dn->dn_next_bonuslen[txgoff] != 0) { in dnode_sync()
732 if (dn->dn_next_bonuslen[txgoff] == DN_ZERO_BONUSLEN) in dnode_sync()
735 dnp->dn_bonuslen = dn->dn_next_bonuslen[txgoff]; in dnode_sync()
738 dn->dn_next_bonuslen[txgoff] = 0; in dnode_sync()
741 if (dn->dn_next_bonustype[txgoff] != 0) { in dnode_sync()
742 ASSERT(DMU_OT_IS_VALID(dn->dn_next_bonustype[txgoff])); in dnode_sync()
743 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; in dnode_sync()
744 dn->dn_next_bonustype[txgoff] = 0; in dnode_sync()
754 if (dn->dn_rm_spillblk[txgoff] || freeing_dnode) { in dnode_sync()
757 dn->dn_rm_spillblk[txgoff] = 0; in dnode_sync()
760 if (dn->dn_next_indblkshift[txgoff] != 0) { in dnode_sync()
762 dnp->dn_indblkshift = dn->dn_next_indblkshift[txgoff]; in dnode_sync()
763 dn->dn_next_indblkshift[txgoff] = 0; in dnode_sync()
784 if (dn->dn_free_ranges[txgoff] != NULL) { in dnode_sync()
792 dn->dn_free_ranges[txgoff], 0, in dnode_sync()
803 zfs_range_tree_walk(dn->dn_free_ranges[txgoff], in dnode_sync()
805 zfs_range_tree_vacate(dn->dn_free_ranges[txgoff], NULL, NULL); in dnode_sync()
806 zfs_range_tree_destroy(dn->dn_free_ranges[txgoff]); in dnode_sync()
807 dn->dn_free_ranges[txgoff] = NULL; in dnode_sync()
825 if (dn->dn_next_nlevels[txgoff]) { in dnode_sync()
827 dn->dn_next_nlevels[txgoff] = 0; in dnode_sync()
835 if (dn->dn_next_maxblkid[txgoff]) { in dnode_sync()
838 dn->dn_next_maxblkid[txgoff] & ~DMU_NEXT_MAXBLKID_SET; in dnode_sync()
839 dn->dn_next_maxblkid[txgoff] = 0; in dnode_sync()
843 if (dn->dn_next_nblkptr[txgoff]) { in dnode_sync()
846 if (dn->dn_next_nblkptr[txgoff] > dnp->dn_nblkptr) { in dnode_sync()
850 (dn->dn_next_nblkptr[txgoff] - dnp->dn_nblkptr)); in dnode_sync()
854 ASSERT(dn->dn_next_nblkptr[txgoff] < dnp->dn_nblkptr); in dnode_sync()
857 if (i >= dn->dn_next_nblkptr[txgoff]) in dnode_sync()
863 dnp->dn_nblkptr = dn->dn_next_nblkptr[txgoff]; in dnode_sync()
864 dn->dn_next_nblkptr[txgoff] = 0; in dnode_sync()