summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-16 13:16:58 +0000
committerdg <dg@FreeBSD.org>1995-08-16 13:16:58 +0000
commitb6d06a9f5d50796120cce296e1743d2b3f75204e (patch)
tree73457a506d294b187165ff9ab98b08886481ccb3 /sys/ufs
parent6ff589c73a58e34d78bf2a9256b3b530cc64ca4a (diff)
downloadFreeBSD-src-b6d06a9f5d50796120cce296e1743d2b3f75204e.zip
FreeBSD-src-b6d06a9f5d50796120cce296e1743d2b3f75204e.tar.gz
Honor -async mount option when doing the inode update.
Obtained from: 4.4BSD-Lite2
Diffstat (limited to 'sys/ufs')
-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 b3b327c..1b8d25c 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.5 (Berkeley) 12/30/93
- * $Id: ffs_inode.c,v 1.13 1995/03/26 23:29:10 davidg Exp $
+ * $Id: ffs_inode.c,v 1.14 1995/08/04 05:49:17 davidg Exp $
*/
#include <sys/param.h>
@@ -138,7 +138,7 @@ ffs_update(ap)
}
*((struct dinode *)bp->b_data +
ino_to_fsbo(fs, ip->i_number)) = ip->i_din;
- if (ap->a_waitfor)
+ if (ap->a_waitfor && (ap->a_vp->v_mount->mnt_flag & MNT_ASYNC) == 0)
return (bwrite(bp));
else {
bdwrite(bp);
OpenPOWER on IntegriCloud