usr/src/uts/common/fs/zfs/dmu_tx.c
changeset 14234 189ec27885ae
parent 14204 6f5ac5d649af
child 14247 dceb17481b99
--- a/usr/src/uts/common/fs/zfs/dmu_tx.c	Wed Aug 07 17:58:15 2013 -0400
+++ b/usr/src/uts/common/fs/zfs/dmu_tx.c	Tue Aug 20 20:11:52 2013 -0800
@@ -615,7 +615,8 @@
 	 * if they are blocksize-aligned.
 	 */
 	if (dn->dn_datablkshift == 0) {
-		dmu_tx_count_write(txh, off, len);
+		if (off != 0 || len < dn->dn_datablksz)
+			dmu_tx_count_write(txh, off, len);
 	} else {
 		/* first block will be modified if it is not aligned */
 		if (!IS_P2ALIGNED(off, 1 << dn->dn_datablkshift))