diff options
author | bde <bde@FreeBSD.org> | 1999-01-07 16:14:19 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-07 16:14:19 +0000 |
commit | 2facf6978aee7d6b1f5ca50f86f5a3784bf8dc19 (patch) | |
tree | 35574972d06a1d702f3f738ba45c782641845a3a /sys/gnu/ext2fs/ext2_readwrite.c | |
parent | 9625424b5fb4fcb6b1736c570b2cdb8125017e32 (diff) | |
download | FreeBSD-src-2facf6978aee7d6b1f5ca50f86f5a3784bf8dc19.zip FreeBSD-src-2facf6978aee7d6b1f5ca50f86f5a3784bf8dc19.tar.gz |
Don't pass unused unused timestamp args to UFS_UPDATE() or waste
time initializing them. This almost finishes centralizing (in-core)
timestamp updates in ufs_itimes().
Diffstat (limited to 'sys/gnu/ext2fs/ext2_readwrite.c')
-rw-r--r-- | sys/gnu/ext2fs/ext2_readwrite.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index 7efe39a..d5881e2 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -173,7 +173,6 @@ 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; @@ -289,9 +288,7 @@ WRITE(ap) uio->uio_offset -= resid - uio->uio_resid; uio->uio_resid = resid; } - } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) { - getmicrotime(&tv); - error = UFS_UPDATE(vp, &tv, &tv, 1); - } + } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) + error = UFS_UPDATE(vp, 1); return (error); } |