--- a/usr/src/uts/common/fs/zfs/zfs_log.c Thu Feb 28 08:30:33 2008 -0800
+++ b/usr/src/uts/common/fs/zfs/zfs_log.c Thu Feb 28 08:51:21 2008 -0800
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -511,6 +511,8 @@
}
itx->itx_wr_state = write_state;
+ if (write_state == WR_NEED_COPY)
+ itx->itx_sod += len;
lr->lr_foid = zp->z_id;
lr->lr_offset = off;
lr->lr_length = len;