From 7221ecc0babaacbcefb609a8fc9f6adc14d61451 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Fri, 4 Aug 1995 05:49:17 +0000 Subject: [PATCH] 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 --- sys/ufs/ffs/ffs_inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 0bb88a96dff5..b3b327c51430 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 @@ -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);