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