diff options
Diffstat (limited to 'sys/gnu/ext2fs/ext2_readwrite.c')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_readwrite.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index d5881e2e6f49..7efe39afe4a0 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -173,6 +173,7 @@ WRITE(ap) daddr_t lbn; off_t osize; int blkoffset, error, flags, ioflag, resid, size, xfersize; + struct timeval tv; ioflag = ap->a_ioflag; uio = ap->a_uio; @@ -288,7 +289,9 @@ WRITE(ap) uio->uio_offset -= resid - uio->uio_resid; uio->uio_resid = resid; } - } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) - error = UFS_UPDATE(vp, 1); + } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) { + getmicrotime(&tv); + error = UFS_UPDATE(vp, &tv, &tv, 1); + } return (error); } |
