usr/src/uts/common/fs/zfs/dnode.c
changeset 3882 f58e2c1a879e
parent 3547 e396e0a440b1
child 4309 3dfde0f4662d
equal deleted inserted replaced
3881:6e67ad54ba09 3882:f58e2c1a879e
   204 		 * pointer (instead of packing it against the end of the
   204 		 * pointer (instead of packing it against the end of the
   205 		 * dnode buffer).
   205 		 * dnode buffer).
   206 		 */
   206 		 */
   207 		int off = (dnp->dn_nblkptr-1) * sizeof (blkptr_t);
   207 		int off = (dnp->dn_nblkptr-1) * sizeof (blkptr_t);
   208 		size_t len = DN_MAX_BONUSLEN - off;
   208 		size_t len = DN_MAX_BONUSLEN - off;
       
   209 		ASSERT3U(dnp->dn_bonustype, <, DMU_OT_NUMTYPES);
   209 		dmu_ot[dnp->dn_bonustype].ot_byteswap(dnp->dn_bonus + off, len);
   210 		dmu_ot[dnp->dn_bonustype].ot_byteswap(dnp->dn_bonus + off, len);
   210 	}
   211 	}
   211 }
   212 }
   212 
   213 
   213 void
   214 void