diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-01-28 18:25:54 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-01-28 18:25:54 +0000 |
| commit | 44196d615f2b414fb9b671cd596cb79fe44162f7 (patch) | |
| tree | 0e181cf73387d15acc4778b4fb6ee100dd923513 | |
| parent | bc3dd984f4a2b8e8068ad647e8e6cb3df241169d (diff) | |
Notes
| -rw-r--r-- | sys/kern/vfs_cluster.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index c102640944ef..104968f6ca81 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 <sys/param.h> @@ -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; |
