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
This commit is contained in:
Bruce Evans 1999-01-06 16:52:38 +00:00
parent 9620286730
commit 5991fd0370
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42350

View File

@ -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;
ip = VTOI(vp);
if (((ip->i_flag &
(IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0) &&
(waitfor != MNT_WAIT))
return (0);
ufs_itimes(vp);
ip = VTOI(vp);
if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor != MNT_WAIT)
return (0);
ip->i_flag &= ~(IN_LAZYMOD | IN_MODIFIED);
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (0);