From: niklas Date: Fri, 10 Jan 1997 23:18:40 +0000 (+0000) Subject: Correct a panic condition hitting on machines with NBPG != ffs blocksize, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8bbf834bc8ca396ec2ce78d4ce76972f82100e4f;p=openbsd Correct a panic condition hitting on machines with NBPG != ffs blocksize, plus having a large bufpages value compared to nbuf. --- 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);