From 3d03cf7436c68a5bb050fe3619841d085aba1ec4 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Fri, 10 Jan 1997 23:18:41 +0000 Subject: Correct a panic condition hitting on machines with NBPG != ffs blocksize, plus having a large bufpages value compared to nbuf. --- sys/kern/vfs_cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index ad792afff1f..f54dc1836f5 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cluster.c,v 1.5 1996/06/11 03:25:13 tholo Exp $ */ +/* $OpenBSD: vfs_cluster.c,v 1.6 1997/01/10 23:18:40 niklas Exp $ */ /* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */ /*- @@ -349,7 +349,7 @@ cluster_rbuild(vp, filesize, bp, lbn, blkno, size, run, flags) */ if (tbp->b_bufsize + size > MAXBSIZE) { #ifdef DIAGNOSTIC - if (tbp->b_bufsize != MAXBSIZE) + if (tbp->b_bufsize > MAXBSIZE) panic("cluster_rbuild: too much memory"); #endif brelse(tbp); -- cgit v1.2.3