summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-08 09:11:44 +0000
committerdg <dg@FreeBSD.org>1994-08-08 09:11:44 +0000
commita5f60ab1cfad6cda9e50af06ccb3c5e78d658e91 (patch)
treecd38242284458e56c6e3c3915a1c3113712bc4b7 /sys/nfs
parentf280e7f6e10002a1d5ce5112bd3c990cbc975305 (diff)
downloadFreeBSD-src-a5f60ab1cfad6cda9e50af06ccb3c5e78d658e91.zip
FreeBSD-src-a5f60ab1cfad6cda9e50af06ccb3c5e78d658e91.tar.gz
Changed B_AGE policy to work correctly in a world with relatively large
buffer caches. The old policy generally ended up caching nothing.
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_bio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 893aabf..381d8e3 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.5 (Berkeley) 1/4/94
- * $Id$
+ * $Id: nfs_bio.c,v 1.3 1994/08/02 07:52:05 davidg Exp $
*/
#include <sys/param.h>
@@ -329,8 +329,6 @@ again:
}
switch (vp->v_type) {
case VREG:
- if (n + on == biosize || uio->uio_offset == np->n_size)
- bp->b_flags |= B_AGE;
break;
case VLNK:
n = 0;
OpenPOWER on IntegriCloud