Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/chs-ubc2]: src/sys/ufs/ffs avoid setting u_size lower in ffs_balloc(), o...
details: https://anonhg.NetBSD.org/src/rev/474ace381515
branches: chs-ubc2
changeset: 471450:474ace381515
user: chs <chs%NetBSD.org@localhost>
date: Fri Aug 06 12:50:04 1999 +0000
description:
avoid setting u_size lower in ffs_balloc(), otherwise we'll end up
PG_RELEASEing pages we have busy in ufs_balloc_range().
diffstat:
sys/ufs/ffs/ffs_balloc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r eca8a44ed5c5 -r 474ace381515 sys/ufs/ffs/ffs_balloc.c
--- a/sys/ufs/ffs/ffs_balloc.c Fri Aug 06 12:47:28 1999 +0000
+++ b/sys/ufs/ffs/ffs_balloc.c Fri Aug 06 12:50:04 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_balloc.c,v 1.14.4.5 1999/07/31 18:47:38 chs Exp $ */
+/* $NetBSD: ffs_balloc.c,v 1.14.4.6 1999/08/06 12:50:04 chs Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -109,7 +109,9 @@
if (ip->i_ffs_size < off + bsize) {
ip->i_ffs_size = off + bsize;
- uvm_vnp_setsize(vp, ip->i_ffs_size);
+ if (vp->v_uvm.u_size < ip->i_ffs_size) {
+ uvm_vnp_setsize(vp, ip->i_ffs_size);
+ }
}
off += bsize;
Home |
Main Index |
Thread Index |
Old Index