From 0bc178170104cff1e818e849d08a50c6a4ee0851 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 22 Mar 1997 06:53:45 +0000 Subject: Fixed some invalid (non-atomic) accesses to `time', mostly ones of the form `tv = time'. Use a new function gettime(). The current version just forces atomicicity without fixing precision or efficiency bugs. Simplified some related valid accesses by using the central function. --- sys/gnu/ext2fs/ext2_readwrite.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/gnu/ext2fs/ext2_readwrite.c') diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c index 806c630..ae87153 100644 --- a/sys/gnu/ext2fs/ext2_readwrite.c +++ b/sys/gnu/ext2fs/ext2_readwrite.c @@ -313,11 +313,7 @@ WRITE(ap) uio->uio_resid = resid; } } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) { -#if !defined(__FreeBSD__) - get_time(&tv); -#else - tv = time; -#endif + gettime(&tv); error = VOP_UPDATE(vp, &tv, &tv, 1); } return (error); -- cgit v1.1