Deleted Added
full compact
dbuf.c (321568) dbuf.c (321573)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3522 unchanged lines hidden (view full) ---

3531 SET_BOOKMARK(&zb, os->os_dsl_dataset ?
3532 os->os_dsl_dataset->ds_object : DMU_META_OBJSET,
3533 db->db.db_object, db->db_level, db->db_blkid);
3534
3535 if (db->db_blkid == DMU_SPILL_BLKID)
3536 wp_flag = WP_SPILL;
3537 wp_flag |= (db->db_state == DB_NOFILL) ? WP_NOFILL : 0;
3538
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3522 unchanged lines hidden (view full) ---

3531 SET_BOOKMARK(&zb, os->os_dsl_dataset ?
3532 os->os_dsl_dataset->ds_object : DMU_META_OBJSET,
3533 db->db.db_object, db->db_level, db->db_blkid);
3534
3535 if (db->db_blkid == DMU_SPILL_BLKID)
3536 wp_flag = WP_SPILL;
3537 wp_flag |= (db->db_state == DB_NOFILL) ? WP_NOFILL : 0;
3538
3539 dmu_write_policy(os, dn, db->db_level, wp_flag,
3540 (data != NULL && arc_get_compression(data) != ZIO_COMPRESS_OFF) ?
3541 arc_get_compression(data) : ZIO_COMPRESS_INHERIT, &zp);
3539 dmu_write_policy(os, dn, db->db_level, wp_flag, &zp);
3542 DB_DNODE_EXIT(db);
3543
3544 /*
3545 * We copy the blkptr now (rather than when we instantiate the dirty
3546 * record), because its value can change between open context and
3547 * syncing context. We do not need to hold dn_struct_rwlock to read
3548 * db_blkptr because we are in syncing context.
3549 */

--- 48 unchanged lines hidden ---
3540 DB_DNODE_EXIT(db);
3541
3542 /*
3543 * We copy the blkptr now (rather than when we instantiate the dirty
3544 * record), because its value can change between open context and
3545 * syncing context. We do not need to hold dn_struct_rwlock to read
3546 * db_blkptr because we are in syncing context.
3547 */

--- 48 unchanged lines hidden ---