equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2011 by Delphix. All rights reserved. |
23 * Copyright (c) 2012 by Delphix. All rights reserved. |
24 */ |
24 */ |
25 |
25 |
26 #include <sys/zio.h> |
26 #include <sys/zio.h> |
27 #include <sys/spa.h> |
27 #include <sys/spa.h> |
28 #include <sys/dmu.h> |
28 #include <sys/dmu.h> |
459 |
459 |
460 #ifdef ZFS_DEBUG |
460 #ifdef ZFS_DEBUG |
461 { |
461 { |
462 dmu_object_info_t doi; |
462 dmu_object_info_t doi; |
463 dmu_object_info_from_db(db, &doi); |
463 dmu_object_info_from_db(db, &doi); |
464 ASSERT(dmu_ot[doi.doi_type].ot_byteswap == zap_byteswap); |
464 ASSERT3U(DMU_OT_BYTESWAP(doi.doi_type), ==, DMU_BSWAP_ZAP); |
465 } |
465 } |
466 #endif |
466 #endif |
467 |
467 |
468 zap = dmu_buf_get_user(db); |
468 zap = dmu_buf_get_user(db); |
469 if (zap == NULL) |
469 if (zap == NULL) |
583 |
583 |
584 #ifdef ZFS_DEBUG |
584 #ifdef ZFS_DEBUG |
585 { |
585 { |
586 dmu_object_info_t doi; |
586 dmu_object_info_t doi; |
587 dmu_object_info_from_db(db, &doi); |
587 dmu_object_info_from_db(db, &doi); |
588 ASSERT(dmu_ot[doi.doi_type].ot_byteswap == zap_byteswap); |
588 ASSERT3U(DMU_OT_BYTESWAP(doi.doi_type), ==, DMU_BSWAP_ZAP); |
589 } |
589 } |
590 #endif |
590 #endif |
591 |
591 |
592 dmu_buf_will_dirty(db, tx); |
592 dmu_buf_will_dirty(db, tx); |
593 zp = db->db_data; |
593 zp = db->db_data; |