usr/src/uts/common/fs/zfs/dmu_tx.c
changeset 13700 2889e2596bd6
parent 13469 b8e89e5c4167
child 13743 95aba6e49b9f
equal deleted inserted replaced
13699:733714f4dc24 13700:2889e2596bd6
    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  */
       
    24 /*
       
    25  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
    23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       
    24  * Copyright (c) 2012 by Delphix. All rights reserved.
    26  */
    25  */
    27 
    26 
    28 #include <sys/dmu.h>
    27 #include <sys/dmu.h>
    29 #include <sys/dmu_impl.h>
    28 #include <sys/dmu_impl.h>
    30 #include <sys/dbuf.h>
    29 #include <sys/dbuf.h>
   674 		 */
   673 		 */
   675 		dmu_tx_count_write(txh, 0, 2 << fzap_default_block_shift);
   674 		dmu_tx_count_write(txh, 0, 2 << fzap_default_block_shift);
   676 		return;
   675 		return;
   677 	}
   676 	}
   678 
   677 
   679 	ASSERT3P(dmu_ot[dn->dn_type].ot_byteswap, ==, zap_byteswap);
   678 	ASSERT3P(DMU_OT_BYTESWAP(dn->dn_type), ==, DMU_BSWAP_ZAP);
   680 
   679 
   681 	if (dn->dn_maxblkid == 0 && !add) {
   680 	if (dn->dn_maxblkid == 0 && !add) {
   682 		blkptr_t *bp;
   681 		blkptr_t *bp;
   683 
   682 
   684 		/*
   683 		/*