From 44196d615f2b414fb9b671cd596cb79fe44162f7 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Sun, 28 Jan 1996 18:25:54 +0000 Subject: [PATCH] An earlier modification had decreased CPU usage, but also decreased performance. This essentially undoes that change. --- sys/kern/vfs_cluster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index c102640944e..104968f6ca8 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.32 1996/01/19 03:58:14 dyson Exp $ + * $Id: vfs_cluster.c,v 1.33 1996/01/20 23:24:16 dyson Exp $ */ #include @@ -149,9 +149,9 @@ cluster_read(vp, filesize, lblkno, size, cred, bpp) vp->v_ralen >>= RA_SHIFTDOWN; return 0; } else if( vp->v_maxra > lblkno) { - if ( vp->v_maxra > lblkno + (vp->v_ralen / RA_MULTIPLE_SLOW) ) { - if ((vp->v_ralen + 1) < RA_MULTIPLE_FAST*(MAXPHYS / size)) - ++vp->v_ralen; + if ((vp->v_ralen + 1) < RA_MULTIPLE_FAST * (MAXPHYS / size)) + ++vp->v_ralen; + if ( vp->v_maxra > lblkno + vp->v_ralen ) { return 0; } lblkno = vp->v_maxra;