From f69170e601c759b34452a406187cf075ecc7de10 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Sat, 20 Jan 1996 23:24:16 +0000 Subject: [PATCH] Previous commit to vfs_cluster accidentally disabled read-ahead. Problem fixed by initializing "alreadyincore" to 0 in the case of sequential reads. --- sys/kern/vfs_cluster.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index b232071698d0..c102640944ef 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -33,7 +33,7 @@ * SUCH DAMAGE. * * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94 - * $Id: vfs_cluster.c,v 1.31 1995/12/22 16:06:46 bde Exp $ + * $Id: vfs_cluster.c,v 1.32 1996/01/19 03:58:14 dyson Exp $ */ #include @@ -179,6 +179,7 @@ cluster_read(vp, filesize, lblkno, size, cred, bpp) * if we have been doing sequential I/O, then do some read-ahead */ if (seq) { + alreadyincore = 0; /* * bump ralen a bit...