diff options
author | dg <dg@FreeBSD.org> | 1995-08-04 05:49:17 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-04 05:49:17 +0000 |
commit | 060942c07e02758de7d13b7001005b172a7650f7 (patch) | |
tree | d7150f5678d6da5e9fa0ac09e33a5913c27c566b /sys/ufs | |
parent | 3e9799b15834bca3637a6de26db3be6058945ffc (diff) | |
download | FreeBSD-src-060942c07e02758de7d13b7001005b172a7650f7.zip FreeBSD-src-060942c07e02758de7d13b7001005b172a7650f7.tar.gz |
Use the correct flags (IO_SYNC -> B_SYNC) when deciding to do a sync or
async write in the section that changes the filesize. The bug resulted
in the updates always being async.
Obtained from: 4.4BSD-Lite2
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 0bb88a9..b3b327c 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.12 1995/03/04 03:24:42 davidg Exp $ + * $Id: ffs_inode.c,v 1.13 1995/03/26 23:29:10 davidg Exp $ */ #include <sys/param.h> @@ -220,7 +220,7 @@ ffs_truncate(ap) if (error) return (error); oip->i_size = length; - if (aflags & IO_SYNC) + if (aflags & B_SYNC) bwrite(bp); else bawrite(bp); @@ -250,7 +250,7 @@ ffs_truncate(ap) size = blksize(fs, oip, lbn); bzero((char *)bp->b_data + offset, (u_int)(size - offset)); allocbuf(bp, size); - if (aflags & IO_SYNC) + if (aflags & B_SYNC) bwrite(bp); else bawrite(bp); |