diff options
author | bde <bde@FreeBSD.org> | 1999-01-06 16:52:38 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-06 16:52:38 +0000 |
commit | f77c71a1d37471a9ad2532de295e1677f118557e (patch) | |
tree | a6cad8f15ec6e81201c114da378957ad5280de31 /sys/ufs | |
parent | dbd5e0f903e986e112efce5f4e2462f265d6bffe (diff) | |
download | FreeBSD-src-f77c71a1d37471a9ad2532de295e1677f118557e.zip FreeBSD-src-f77c71a1d37471a9ad2532de295e1677f118557e.tar.gz |
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
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |