summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1995-11-20 04:53:45 +0000
committerJohn Dyson <dyson@FreeBSD.org>1995-11-20 04:53:45 +0000
commitfec16d9994081ad1850b7912d830abc0133f214a (patch)
tree5bd5b5ebecad56715d0b2c8dd7f4000587dfe8d9 /sys/kern/vfs_cluster.c
parent2d6ec99c0aed8f88e066ea117700e28b6a9f4899 (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 59666c6c5887..bc4172f184e3 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.26 1995/11/19 20:42:25 dyson Exp $
+ * $Id: vfs_cluster.c,v 1.27 1995/11/20 03:55:48 dyson Exp $
*/
#include <sys/param.h>
@@ -366,7 +366,7 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run)
m = bogus_page;
}
if ((bp->b_npages == 0) ||
- (bp->b_pages[bp->b_npages] != m)) {
+ (bp->b_pages[bp->b_npages-1] != m)) {
bp->b_pages[bp->b_npages] = m;
bp->b_npages++;
}