aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-01-06 16:52:38 +0000
committerBruce Evans <bde@FreeBSD.org>1999-01-06 16:52:38 +0000
commit5991fd0370720c6f85decbf53cf8c9484327be92 (patch)
treecaf15c07f2bc4f4ec0fac4ed48cc1f6205273b17
parent96202867308806f271b47b906c11c56f98fb687a (diff)
downloadsrc-5991fd0370720c6f85decbf53cf8c9484327be92.tar.gz
src-5991fd0370720c6f85decbf53cf8c9484327be92.zip
Backed out rev.1.47. It just broke my optimisations for lazy syncing
of timestamps in rev.1.45. The soft updates bug was elsewhere. Forgotten by: luoqi
Notes
Notes: svn path=/head/; revision=42350
-rw-r--r--sys/ufs/ffs/ffs_inode.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 5a75ed3f6cab..90a07a2c22d3 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_inode.c 8.13 (Berkeley) 4/21/95
- * $Id: ffs_inode.c,v 1.48 1998/10/25 17:44:57 phk Exp $
+ * $Id: ffs_inode.c,v 1.49 1998/10/31 15:31:27 peter Exp $
*/
#include "opt_quota.h"
@@ -81,12 +81,10 @@ ffs_update(vp, access, modify, waitfor)
struct inode *ip;
int error;
+ ufs_itimes(vp);
ip = VTOI(vp);
- if (((ip->i_flag &
- (IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0) &&
- (waitfor != MNT_WAIT))
+ if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor != MNT_WAIT)
return (0);
- ufs_itimes(vp);
ip->i_flag &= ~(IN_LAZYMOD | IN_MODIFIED);
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (0);