summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_inode.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-06 18:18:06 +0000
committerbde <bde@FreeBSD.org>1999-01-06 18:18:06 +0000
commit2a8b656860853d41543c4a12a9ab8b55e13c8edc (patch)
tree89e8b45e986625eea6ce45970d797eb8d85b475a /sys/ufs/ffs/ffs_inode.c
parent76b479177d68eca7d7121427665c08ca7ffaf3b7 (diff)
downloadFreeBSD-src-2a8b656860853d41543c4a12a9ab8b55e13c8edc.zip
FreeBSD-src-2a8b656860853d41543c4a12a9ab8b55e13c8edc.tar.gz
UFS_UPDATE() takes a boolean `waitfor' arg, so don't pass it the value
MNT_WAIT when we mean boolean `true' or check for that value not being passed. There was no problem in practice because MNT_WAIT had the magic value of 1.
Diffstat (limited to 'sys/ufs/ffs/ffs_inode.c')
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 90a07a2..5f6ab9c 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.49 1998/10/31 15:31:27 peter Exp $
+ * $Id: ffs_inode.c,v 1.50 1999/01/06 16:52:38 bde Exp $
*/
#include "opt_quota.h"
@@ -83,7 +83,7 @@ ffs_update(vp, access, modify, waitfor)
ufs_itimes(vp);
ip = VTOI(vp);
- if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor != MNT_WAIT)
+ if ((ip->i_flag & IN_MODIFIED) == 0 && waitfor == 0)
return (0);
ip->i_flag &= ~(IN_LAZYMOD | IN_MODIFIED);
if (vp->v_mount->mnt_flag & MNT_RDONLY)
OpenPOWER on IntegriCloud