diff options
author | bde <bde@FreeBSD.org> | 1999-01-06 18:18:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-06 18:18:06 +0000 |
commit | 2a8b656860853d41543c4a12a9ab8b55e13c8edc (patch) | |
tree | 89e8b45e986625eea6ce45970d797eb8d85b475a /sys/contrib | |
parent | 76b479177d68eca7d7121427665c08ca7ffaf3b7 (diff) | |
download | FreeBSD-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/contrib')
-rw-r--r-- | sys/contrib/softupdates/ffs_softdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c index 35aa709..fb67658 100644 --- a/sys/contrib/softupdates/ffs_softdep.c +++ b/sys/contrib/softupdates/ffs_softdep.c @@ -54,7 +54,7 @@ * SUCH DAMAGE. * * from: @(#)ffs_softdep.c 9.28 (McKusick) 8/8/98 - * $Id: ffs_softdep.c,v 1.17 1998/10/31 15:33:32 peter Exp $ + * $Id: ffs_softdep.c,v 1.18 1998/12/10 20:11:47 julian Exp $ */ /* @@ -3463,7 +3463,7 @@ void softdep_update_inodeblock(ip, bp, waitfor) struct inode *ip; /* the "in_core" copy of the inode */ struct buf *bp; /* the buffer containing the inode block */ - int waitfor; /* 1 => update must be allowed */ + int waitfor; /* nonzero => update must be allowed */ { struct inodedep *inodedep; struct worklist *wk; @@ -3655,7 +3655,7 @@ softdep_fsync(vp) #else getmicrotime(&tv); #endif /* __FreeBSD__ */ - if (error = UFS_UPDATE(pvp, &tv, &tv, MNT_WAIT)) { + if (error = UFS_UPDATE(pvp, &tv, &tv, 1)) { vput(pvp); return (error); } @@ -4028,7 +4028,7 @@ flush_pagedep_deps(pvp, mp, diraddhdp) getmicrotime(&tv); #endif /* __FreeBSD__ */ FREE_LOCK(&lk); - if (error = UFS_UPDATE(pvp, &tv, &tv, MNT_WAIT)) + if (error = UFS_UPDATE(pvp, &tv, &tv, 1)) break; ACQUIRE_LOCK(&lk); /* @@ -4115,7 +4115,7 @@ flush_pagedep_deps(pvp, mp, diraddhdp) #else getmicrotime(&tv); #endif /* __FreeBSD__ */ - error = UFS_UPDATE(vp, &tv, &tv, MNT_WAIT); + error = UFS_UPDATE(vp, &tv, &tv, 1); vput(vp); if (error) break; |