Lines Matching defs:dnp
549 dnode_phys_t *dnp = dn->dn_phys;
556 ASSERT(dnp->dn_type != DMU_OT_NONE || dn->dn_allocated_txg);
557 ASSERT(dnp->dn_type != DMU_OT_NONE ||
558 bcmp(dnp, &zerodn, DNODE_SIZE) == 0);
580 if (dnp->dn_type == DMU_OT_NONE) {
582 dnp->dn_nlevels = 1;
583 dnp->dn_nblkptr = dn->dn_nblkptr;
586 dnp->dn_type = dn->dn_type;
587 dnp->dn_bonustype = dn->dn_bonustype;
588 dnp->dn_bonuslen = dn->dn_bonuslen;
590 ASSERT(dnp->dn_nlevels > 1 ||
591 BP_IS_HOLE(&dnp->dn_blkptr[0]) ||
592 BP_IS_EMBEDDED(&dnp->dn_blkptr[0]) ||
593 BP_GET_LSIZE(&dnp->dn_blkptr[0]) ==
594 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT);
595 ASSERT(dnp->dn_nlevels < 2 ||
596 BP_IS_HOLE(&dnp->dn_blkptr[0]) ||
597 BP_GET_LSIZE(&dnp->dn_blkptr[0]) == 1 << dnp->dn_indblkshift);
600 dnp->dn_type = dn->dn_type;
607 ASSERT(BP_IS_HOLE(&dnp->dn_blkptr[0]) ||
610 dnp->dn_datablkszsec ||
612 dnp->dn_datablkszsec =
619 dnp->dn_bonuslen = 0;
621 dnp->dn_bonuslen = dn->dn_next_bonuslen[txgoff];
622 ASSERT(dnp->dn_bonuslen <= DN_MAX_BONUSLEN);
628 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff];
640 if (dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR)
646 ASSERT(dnp->dn_nlevels == 1);
647 dnp->dn_indblkshift = dn->dn_next_indblkshift[txgoff];
656 dnp->dn_checksum = dn->dn_checksum;
657 dnp->dn_compress = dn->dn_compress;
664 dnp->dn_flags &= ~DNODE_FLAG_SPILL_BLKPTR;
695 if (dn->dn_next_nblkptr[txgoff] > dnp->dn_nblkptr) {
697 bzero(dnp->dn_blkptr + dnp->dn_nblkptr,
699 (dn->dn_next_nblkptr[txgoff] - dnp->dn_nblkptr));
703 ASSERT(dn->dn_next_nblkptr[txgoff] < dnp->dn_nblkptr);
706 i < dnp->dn_nblkptr; i++)
707 ASSERT(BP_IS_HOLE(&dnp->dn_blkptr[i]));
711 dnp->dn_nblkptr = dn->dn_next_nblkptr[txgoff];