summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-28 04:32:23 +0000
committerdg <dg@FreeBSD.org>1995-05-28 04:32:23 +0000
commit9e52c97c63cba692070dae8a8ab38fb2449f2cdd (patch)
treeb3e69805e460bca01967f6fbcdedcbedaa512399
parentc8aeb3cc9c2b4a0b0e7fe72830f46ff14d790d65 (diff)
downloadFreeBSD-src-9e52c97c63cba692070dae8a8ab38fb2449f2cdd.zip
FreeBSD-src-9e52c97c63cba692070dae8a8ab38fb2449f2cdd.tar.gz
Kill bogus vnode_pager_setsize(). It was being called at the wrong time
and resulted in the object size being too small. This caused bad things to happen later when the file was mapped. Reviewed by: John Dyson
-rw-r--r--sys/ufs/ffs/ffs_balloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index 8621869..687781e 100644
--- a/sys/ufs/ffs/ffs_balloc.c
+++ b/sys/ufs/ffs/ffs_balloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_balloc.c 8.4 (Berkeley) 9/23/93
- * $Id: ffs_balloc.c,v 1.6 1995/03/19 14:29:13 davidg Exp $
+ * $Id: ffs_balloc.c,v 1.7 1995/04/09 06:03:36 davidg Exp $
*/
#include <sys/param.h>
@@ -93,7 +93,6 @@ ffs_balloc(ip, bn, size, cred, bpp, flags)
if (error)
return (error);
ip->i_size = (nb + 1) * fs->fs_bsize;
- vnode_pager_setsize(vp, (u_long)ip->i_size);
ip->i_db[nb] = dbtofsb(fs, bp->b_blkno);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
if (flags & B_SYNC)
OpenPOWER on IntegriCloud