boolean, not a MNT_* flag.
ok beck@
-/* $OpenBSD: ffs_alloc.c,v 1.99 2014/01/25 23:31:12 guenther Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.100 2014/05/22 02:02:39 guenther Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
} else {
ip->i_flag |= IN_CHANGE | IN_UPDATE;
if (!doasyncfree) {
- UFS_UPDATE(ip, MNT_WAIT);
+ UFS_UPDATE(ip, 1);
}
}
if (ssize < len) {
} else {
ip->i_flag |= IN_CHANGE | IN_UPDATE;
if (!doasyncfree)
- ffs_update(ip, MNT_WAIT);
+ ffs_update(ip, 1);
}
if (ssize < len) {
-/* $OpenBSD: ffs_balloc.c,v 1.40 2014/01/25 23:31:12 guenther Exp $ */
+/* $OpenBSD: ffs_balloc.c,v 1.41 2014/05/22 02:02:39 guenther Exp $ */
/* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */
/*
if (DOINGSOFTDEP(vp) && unwindidx == 0) {
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- ffs_update(ip, MNT_WAIT);
+ ffs_update(ip, 1);
}
/*
*allocib = 0;
ip->i_flag |= IN_CHANGE | IN_UPDATE;
if (DOINGSOFTDEP(vp))
- ffs_update(ip, MNT_WAIT);
+ ffs_update(ip, 1);
} else {
r = bread(vp, indirs[unwindidx].in_lbn,
(int)fs->fs_bsize, &bp);
-/* $OpenBSD: ffs_inode.c,v 1.68 2014/03/19 04:17:33 guenther Exp $ */
+/* $OpenBSD: ffs_inode.c,v 1.69 2014/05/22 02:02:39 guenther Exp $ */
/* $NetBSD: ffs_inode.c,v 1.10 1996/05/11 18:27:19 mycroft Exp $ */
/*
vp = ITOV(ip);
ufs_itimes(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_MODIFIED | IN_LAZYMOD);
memset(SHORTLINK(oip), 0, (size_t) DIP(oip, size));
DIP_ASSIGN(oip, size, 0);
oip->i_flag |= IN_CHANGE | IN_UPDATE;
- return (UFS_UPDATE(oip, MNT_WAIT));
+ return (UFS_UPDATE(oip, 1));
}
if ((error = getinoquota(oip)) != 0)
else
bawrite(bp);
oip->i_flag |= IN_CHANGE | IN_UPDATE;
- return (UFS_UPDATE(oip, MNT_WAIT));
+ return (UFS_UPDATE(oip, 1));
}
uvm_vnp_setsize(ovp, length);
}
oip->i_flag |= IN_CHANGE | IN_UPDATE;
- if ((error = UFS_UPDATE(oip, MNT_WAIT)) != 0)
+ if ((error = UFS_UPDATE(oip, 1)) != 0)
allerror = error;
/*
-/* $OpenBSD: ffs_softdep.c,v 1.126 2014/04/22 20:14:39 beck Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.127 2014/05/22 02:02:39 guenther Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
*/
pip = VTOI(pvp);
if (flushparent) {
- error = UFS_UPDATE(pip, MNT_WAIT);
+ error = UFS_UPDATE(pip, 1);
if (error) {
vput(pvp);
return (error);
*/
if (dap->da_state & MKDIR_PARENT) {
FREE_LOCK(&lk);
- if ((error = UFS_UPDATE(VTOI(pvp), MNT_WAIT)))
+ if ((error = UFS_UPDATE(VTOI(pvp), 1)))
break;
ACQUIRE_LOCK(&lk);
/*
-/* $OpenBSD: ffs_vnops.c,v 1.75 2014/05/09 03:48:58 tedu Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.76 2014/05/22 02:02:39 guenther Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
uio->uio_resid = resid;
}
} else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) {
- error = UFS_UPDATE(ip, MNT_WAIT);
+ error = UFS_UPDATE(ip, 1);
}
/* correct the result for writes clamped by vn_fsizechk() */
uio->uio_resid += overrun;