Lines Matching refs:bonuslen
716 dmu_object_type_t bonustype, int bonuslen, int dn_slots, dmu_tx_t *tx) in dnode_allocate() argument
745 ASSERT((bonustype == DMU_OT_NONE && bonuslen == 0) || in dnode_allocate()
746 (bonustype == DMU_OT_SA && bonuslen == 0) || in dnode_allocate()
747 (bonustype == DMU_OTN_UINT64_METADATA && bonuslen == 0) || in dnode_allocate()
748 (bonustype != DMU_OT_NONE && bonuslen != 0)); in dnode_allocate()
750 ASSERT3U(bonuslen, <=, DN_SLOTS_TO_BONUSLEN(dn_slots)); in dnode_allocate()
782 1 + ((DN_SLOTS_TO_BONUSLEN(dn_slots) - bonuslen) >> in dnode_allocate()
787 dn->dn_bonuslen = bonuslen; in dnode_allocate()
808 dmu_object_type_t bonustype, int bonuslen, int dn_slots, in dnode_reallocate() argument
819 ASSERT((bonustype == DMU_OT_NONE && bonuslen == 0) || in dnode_reallocate()
820 (bonustype != DMU_OT_NONE && bonuslen != 0) || in dnode_reallocate()
821 (bonustype == DMU_OT_SA && bonuslen == 0)); in dnode_reallocate()
823 ASSERT3U(bonuslen, <=, in dnode_reallocate()
825 ASSERT3U(bonuslen, <=, DN_BONUS_SIZE(dn_slots << DNODE_SHIFT)); in dnode_reallocate()
846 if (dn->dn_bonuslen != bonuslen) in dnode_reallocate()
847 dn->dn_next_bonuslen[tx->tx_txg & TXG_MASK] = bonuslen; in dnode_reallocate()
853 1 + ((DN_SLOTS_TO_BONUSLEN(dn_slots) - bonuslen) >> in dnode_reallocate()
872 dn->dn_bonuslen = bonuslen; in dnode_reallocate()