From f77c71a1d37471a9ad2532de295e1677f118557e Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 6 Jan 1999 16:52:38 +0000 Subject: 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 --- sys/ufs/ffs/ffs_inode.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/ufs/ffs/ffs_inode.c') diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 5a75ed3..90a07a2 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); -- cgit v1.1