Lines Matching defs:ndn
704 dnode_move_impl(dnode_t *odn, dnode_t *ndn)
714 ndn->dn_objset = odn->dn_objset;
715 ndn->dn_object = odn->dn_object;
716 ndn->dn_dbuf = odn->dn_dbuf;
717 ndn->dn_handle = odn->dn_handle;
718 ndn->dn_phys = odn->dn_phys;
719 ndn->dn_type = odn->dn_type;
720 ndn->dn_bonuslen = odn->dn_bonuslen;
721 ndn->dn_bonustype = odn->dn_bonustype;
722 ndn->dn_nblkptr = odn->dn_nblkptr;
723 ndn->dn_checksum = odn->dn_checksum;
724 ndn->dn_compress = odn->dn_compress;
725 ndn->dn_nlevels = odn->dn_nlevels;
726 ndn->dn_indblkshift = odn->dn_indblkshift;
727 ndn->dn_datablkshift = odn->dn_datablkshift;
728 ndn->dn_datablkszsec = odn->dn_datablkszsec;
729 ndn->dn_datablksz = odn->dn_datablksz;
730 ndn->dn_maxblkid = odn->dn_maxblkid;
731 bcopy(&odn->dn_next_nblkptr[0], &ndn->dn_next_nblkptr[0],
733 bcopy(&odn->dn_next_nlevels[0], &ndn->dn_next_nlevels[0],
735 bcopy(&odn->dn_next_indblkshift[0], &ndn->dn_next_indblkshift[0],
737 bcopy(&odn->dn_next_bonustype[0], &ndn->dn_next_bonustype[0],
739 bcopy(&odn->dn_rm_spillblk[0], &ndn->dn_rm_spillblk[0],
741 bcopy(&odn->dn_next_bonuslen[0], &ndn->dn_next_bonuslen[0],
743 bcopy(&odn->dn_next_blksz[0], &ndn->dn_next_blksz[0],
746 list_move_tail(&ndn->dn_dirty_records[i],
749 bcopy(&odn->dn_free_ranges[0], &ndn->dn_free_ranges[0],
751 ndn->dn_allocated_txg = odn->dn_allocated_txg;
752 ndn->dn_free_txg = odn->dn_free_txg;
753 ndn->dn_assigned_txg = odn->dn_assigned_txg;
754 ndn->dn_dirtyctx = odn->dn_dirtyctx;
755 ndn->dn_dirtyctx_firstset = odn->dn_dirtyctx_firstset;
757 refcount_transfer(&ndn->dn_holds, &odn->dn_holds);
758 ASSERT(avl_is_empty(&ndn->dn_dbufs));
759 avl_swap(&ndn->dn_dbufs, &odn->dn_dbufs);
760 ndn->dn_dbufs_count = odn->dn_dbufs_count;
761 ndn->dn_unlisted_l0_blkid = odn->dn_unlisted_l0_blkid;
762 ndn->dn_bonus = odn->dn_bonus;
763 ndn->dn_have_spill = odn->dn_have_spill;
764 ndn->dn_zio = odn->dn_zio;
765 ndn->dn_oldused = odn->dn_oldused;
766 ndn->dn_oldflags = odn->dn_oldflags;
767 ndn->dn_olduid = odn->dn_olduid;
768 ndn->dn_oldgid = odn->dn_oldgid;
769 ndn->dn_newuid = odn->dn_newuid;
770 ndn->dn_newgid = odn->dn_newgid;
771 ndn->dn_id_flags = odn->dn_id_flags;
772 dmu_zfetch_init(&ndn->dn_zfetch, NULL);
773 list_move_tail(&ndn->dn_zfetch.zf_stream, &odn->dn_zfetch.zf_stream);
774 ndn->dn_zfetch.zf_dnode = odn->dn_zfetch.zf_dnode;
780 ASSERT(ndn->dn_handle->dnh_dnode == odn);
781 ndn->dn_handle->dnh_dnode = ndn;
782 if (ndn->dn_zfetch.zf_dnode == odn) {
783 ndn->dn_zfetch.zf_dnode = ndn;
837 ndn->dn_moved = 1;
846 dnode_t *odn = buf, *ndn = newbuf;
971 dnode_move_impl(odn, ndn);
973 list_link_replace(&odn->dn_link, &ndn->dn_link);
975 ASSERT(refcount == refcount_count(&ndn->dn_holds));
976 ASSERT(dbufs == ndn->dn_dbufs_count);
977 zrl_exit(&ndn->dn_handle->dnh_zrlock); /* handle has moved */