equal
deleted
inserted
replaced
16 * fields enclosed by brackets "[]" replaced with your own identifying |
16 * fields enclosed by brackets "[]" replaced with your own identifying |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
|
21 |
21 /* |
22 /* |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
|
24 * Copyright (c) 2012 by Delphix. All rights reserved. |
23 */ |
25 */ |
24 |
26 |
25 #include <sys/zfs_context.h> |
27 #include <sys/zfs_context.h> |
26 #include <sys/dbuf.h> |
28 #include <sys/dbuf.h> |
27 #include <sys/dnode.h> |
29 #include <sys/dnode.h> |
592 ASSERT(dnp->dn_bonuslen <= DN_MAX_BONUSLEN); |
594 ASSERT(dnp->dn_bonuslen <= DN_MAX_BONUSLEN); |
593 dn->dn_next_bonuslen[txgoff] = 0; |
595 dn->dn_next_bonuslen[txgoff] = 0; |
594 } |
596 } |
595 |
597 |
596 if (dn->dn_next_bonustype[txgoff]) { |
598 if (dn->dn_next_bonustype[txgoff]) { |
597 ASSERT(dn->dn_next_bonustype[txgoff] < DMU_OT_NUMTYPES); |
599 ASSERT(DMU_OT_IS_VALID(dn->dn_next_bonustype[txgoff])); |
598 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; |
600 dnp->dn_bonustype = dn->dn_next_bonustype[txgoff]; |
599 dn->dn_next_bonustype[txgoff] = 0; |
601 dn->dn_next_bonustype[txgoff] = 0; |
600 } |
602 } |
601 |
603 |
602 /* |
604 /* |