summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1995-10-09 03:19:49 +0000
committerdyson <dyson@FreeBSD.org>1995-10-09 03:19:49 +0000
commit7ccaf92915eccadae0025ce9ac0a5719c13b0e21 (patch)
tree8177f9bda746c98d28adfe44d4145130832f4f95 /sys
parent89926b7c1c6dfb9ad6b9e0e8295be7ec47221ade (diff)
downloadFreeBSD-src-7ccaf92915eccadae0025ce9ac0a5719c13b0e21.zip
FreeBSD-src-7ccaf92915eccadae0025ce9ac0a5719c13b0e21.tar.gz
Work-around a problem in the clustering code on non-VMIO buffers. The
write-side needs rewriting, but this makes a ktrace panic go away for now.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cluster.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index b0aac13..bfc1671 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.20 1995/09/04 00:20:15 dyson Exp $
+ * $Id: vfs_cluster.c,v 1.21 1995/09/23 21:12:45 dyson Exp $
*/
#include <sys/param.h>
@@ -624,7 +624,8 @@ redo:
* potentially pull it back up if the cluster was terminated
* prematurely--too much hassle.
*/
- if (tbp->b_bcount != tbp->b_bufsize) {
+ if (((tbp->b_flags & B_VMIO) == 0) ||
+ (tbp->b_bcount != tbp->b_bufsize)) {
relpbuf(pb);
++start_lbn;
--len;
OpenPOWER on IntegriCloud