diff options
author | dg <dg@FreeBSD.org> | 1995-03-26 23:29:13 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-26 23:29:13 +0000 |
commit | 132086955992d54751ba7185f3fea0c7a33f5867 (patch) | |
tree | 4269d6b2dea243cf08d5f0cfadd37459fd77df8e /sys/ufs/lfs/lfs_inode.c | |
parent | e6a1b97276e57a6fc73770fc7f26fc12b16f20bf (diff) | |
download | FreeBSD-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/lfs/lfs_inode.c')
-rw-r--r-- | sys/ufs/lfs/lfs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/lfs/lfs_inode.c b/sys/ufs/lfs/lfs_inode.c index dd729ac..cc298d9 100644 --- a/sys/ufs/lfs/lfs_inode.c +++ b/sys/ufs/lfs/lfs_inode.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)lfs_inode.c 8.5 (Berkeley) 12/30/93 - * $Id: lfs_inode.c,v 1.6 1995/01/09 16:05:21 davidg Exp $ + * $Id: lfs_inode.c,v 1.7 1995/03/19 14:29:17 davidg Exp $ */ #include <sys/param.h> @@ -235,7 +235,7 @@ lfs_truncate(ap) ip->i_size = length; size = blksize(fs); bzero((char *)bp->b_data + offset, (u_int)(size - offset)); - allocbuf(bp, size, 0); + allocbuf(bp, size); if (e1 = VOP_BWRITE(bp)) return (e1); } |