summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1995-10-09 03:19:49 +0000
committerJohn Dyson <dyson@FreeBSD.org>1995-10-09 03:19:49 +0000
commitf4a73b85edb794c7726b599ce23e5ce88b5fca09 (patch)
tree8177f9bda746c98d28adfe44d4145130832f4f95
parentfbad6604dd7073d0a910d0f2a94d28801ffb380a (diff)
Notes
-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 b0aac13f349a..bfc1671d8707 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;