summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-12-29 02:45:28 +0000
committerdyson <dyson@FreeBSD.org>1996-12-29 02:45:28 +0000
commit04a0ee9a2a23ea1925b6625e3268da60ccc7944b (patch)
tree0be85582a1c640271ed7ce19fc19c0c85527cb9c /sys/kern/vfs_subr.c
parentbaa03b956c25159833733ce567a847c13e9bd032 (diff)
downloadFreeBSD-src-04a0ee9a2a23ea1925b6625e3268da60ccc7944b.zip
FreeBSD-src-04a0ee9a2a23ea1925b6625e3268da60ccc7944b.tar.gz
This commit is the embodiment of some VFS read clustering improvements.
Firstly, now our read-ahead clustering is on a file descriptor basis and not on a per-vnode basis. This will allow multiple processes reading the same file to take advantage of read-ahead clustering. Secondly, there previously was a problem with large reads still using the ramp-up algorithm. Of course, that was bogus, and now we read the entire "chunk" off of the disk in one operation. The read-ahead clustering algorithm should use less CPU than the previous also (I hope :-)). NOTE: THAT LKMS MUST BE REBUILT!!!
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ae27ae2..b4e1db4 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
- * $Id: vfs_subr.c,v 1.64 1996/10/28 11:34:57 phk Exp $
+ * $Id: vfs_subr.c,v 1.65 1996/11/12 09:24:31 bde Exp $
*/
/*
@@ -393,8 +393,6 @@ retry:
#endif
vp->v_flag = 0;
vp->v_lastr = 0;
- vp->v_ralen = 0;
- vp->v_maxra = 0;
vp->v_lastw = 0;
vp->v_lasta = 0;
vp->v_cstart = 0;
OpenPOWER on IntegriCloud