summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_alloc.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-26 23:29:13 +0000
committerdg <dg@FreeBSD.org>1995-03-26 23:29:13 +0000
commit132086955992d54751ba7185f3fea0c7a33f5867 (patch)
tree4269d6b2dea243cf08d5f0cfadd37459fd77df8e /sys/ufs/ffs/ffs_alloc.c
parente6a1b97276e57a6fc73770fc7f26fc12b16f20bf (diff)
downloadFreeBSD-src-132086955992d54751ba7185f3fea0c7a33f5867.zip
FreeBSD-src-132086955992d54751ba7185f3fea0c7a33f5867.tar.gz
Removed third arg (vmio) to allocbuf() that was added with the original
merged cache changes, and figure it out based on the B_VMIO buffer flag. Fixes a problem where delayed write VMIO buffers would sometimes get recopied into kernel-alloced memory. Submitted by: John Dyson
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 81d1fe4..6af2d93 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.8 (Berkeley) 2/21/94
- * $Id: ffs_alloc.c,v 1.10 1995/03/10 22:11:50 davidg Exp $
+ * $Id: ffs_alloc.c,v 1.11 1995/03/19 14:29:11 davidg Exp $
*/
#include <sys/param.h>
@@ -222,7 +222,7 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp)
panic("bad blockno");
ip->i_blocks += btodb(nsize - osize);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- allocbuf(bp, nsize, 0);
+ allocbuf(bp, nsize);
bp->b_flags |= B_DONE;
bzero((char *)bp->b_data + osize, (u_int)nsize - osize);
*bpp = bp;
@@ -286,7 +286,7 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp)
(long)(request - nsize));
ip->i_blocks += btodb(nsize - osize);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- allocbuf(bp, nsize, 0);
+ allocbuf(bp, nsize);
bp->b_flags |= B_DONE;
bzero((char *)bp->b_data + osize, (u_int)nsize - osize);
*bpp = bp;
OpenPOWER on IntegriCloud