usr/src/uts/common/fs/zfs/zfs_log.c
changeset 3063 b252896b372b
parent 2638 4f583dfeae92
child 3461 c19b22f347d6
--- a/usr/src/uts/common/fs/zfs/zfs_log.c	Sat Nov 04 01:18:55 2006 -0800
+++ b/usr/src/uts/common/fs/zfs/zfs_log.c	Sat Nov 04 07:59:19 2006 -0800
@@ -273,6 +273,7 @@
 
 	itx->itx_private = zp->z_zfsvfs;
 
+	itx->itx_sync = (zp->z_sync_cnt != 0);
 	seq = zil_itx_assign(zilog, itx, tx);
 	zp->z_last_itx = seq;
 }
@@ -297,6 +298,7 @@
 	lr->lr_offset = off;
 	lr->lr_length = len;
 
+	itx->itx_sync = (zp->z_sync_cnt != 0);
 	seq = zil_itx_assign(zilog, itx, tx);
 	zp->z_last_itx = seq;
 }
@@ -326,6 +328,7 @@
 	ZFS_TIME_ENCODE(&vap->va_atime, lr->lr_atime);
 	ZFS_TIME_ENCODE(&vap->va_mtime, lr->lr_mtime);
 
+	itx->itx_sync = (zp->z_sync_cnt != 0);
 	seq = zil_itx_assign(zilog, itx, tx);
 	zp->z_last_itx = seq;
 }
@@ -350,6 +353,7 @@
 	lr->lr_aclcnt = (uint64_t)aclcnt;
 	bcopy(z_ace, (ace_t *)(lr + 1), aclcnt * sizeof (ace_t));
 
+	itx->itx_sync = (zp->z_sync_cnt != 0);
 	seq = zil_itx_assign(zilog, itx, tx);
 	zp->z_last_itx = seq;
 }