diff -r 733714f4dc24 -r 2889e2596bd6 usr/src/uts/common/fs/zfs/dnode_sync.c --- a/usr/src/uts/common/fs/zfs/dnode_sync.c Sun May 20 02:46:39 2012 -0500 +++ b/usr/src/uts/common/fs/zfs/dnode_sync.c Mon May 21 12:11:39 2012 -0700 @@ -18,8 +18,10 @@ * * CDDL HEADER END */ + /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012 by Delphix. All rights reserved. */ #include @@ -594,7 +596,7 @@ } if (dn->dn_next_bonustype[txgoff]) { - ASSERT(dn->dn_next_bonustype[txgoff] < DMU_OT_NUMTYPES); + ASSERT(DMU_OT_IS_VALID(dn->dn_next_bonustype[txgoff])); dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; dn->dn_next_bonustype[txgoff] = 0; }