summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Ahrens <mahrens@delphix.com>2017-06-23 12:32:16 -0700
committerPrakash Surya <prakash.surya@delphix.com>2018-06-19 12:28:37 -0700
commitc7fbe46df966ea665df63b6e6071808987e839d1 (patch)
tree67ba94afe4a7755d2272f8fb29e7a7e836d8a7ee
parent99a19144e82244f3426f055cc73af8a937c0135c (diff)
downloadillumos-joyent-c7fbe46df966ea665df63b6e6071808987e839d1.tar.gz
9338 moved dnode has incorrect dn_next_type
Reviewed by: Prashanth Sreenivasa <pks@delphix.com> Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com> Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/uts/common/fs/zfs/dnode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/zfs/dnode.c b/usr/src/uts/common/fs/zfs/dnode.c
index 0a147523f3..2d7d780192 100644
--- a/usr/src/uts/common/fs/zfs/dnode.c
+++ b/usr/src/uts/common/fs/zfs/dnode.c
@@ -733,6 +733,8 @@ dnode_move_impl(dnode_t *odn, dnode_t *ndn)
ndn->dn_datablkszsec = odn->dn_datablkszsec;
ndn->dn_datablksz = odn->dn_datablksz;
ndn->dn_maxblkid = odn->dn_maxblkid;
+ bcopy(&odn->dn_next_type[0], &ndn->dn_next_type[0],
+ sizeof (odn->dn_next_type));
bcopy(&odn->dn_next_nblkptr[0], &ndn->dn_next_nblkptr[0],
sizeof (odn->dn_next_nblkptr));
bcopy(&odn->dn_next_nlevels[0], &ndn->dn_next_nlevels[0],