diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-10 23:18:41 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-10 23:18:41 +0000 |
commit | 3d03cf7436c68a5bb050fe3619841d085aba1ec4 (patch) | |
tree | 9772d7b66ad3afdf9bd02232f10ffef268b71b57 /sys | |
parent | af8159360ff0edcd90db7af3c672162313df13e9 (diff) |
Correct a panic condition hitting on machines with NBPG != ffs blocksize,
plus having a large bufpages value compared to nbuf.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_cluster.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |