summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-06 12:10:39 +0000
committerdg <dg@FreeBSD.org>1995-08-06 12:10:39 +0000
commitd37f4ba3bc52c05290e132d2ec3d080bdb31c9fd (patch)
treee59cbc12396f7f2c499d30cb02c154961aa75e58
parentc82996e4a73c7ca8e5a0723803e5dd5a3d526967 (diff)
downloadFreeBSD-src-d37f4ba3bc52c05290e132d2ec3d080bdb31c9fd.zip
FreeBSD-src-d37f4ba3bc52c05290e132d2ec3d080bdb31c9fd.tar.gz
Resize both VMIO and non-VMIO buffers if the size changes.
-rw-r--r--sys/kern/vfs_bio.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index e9f27d5..4b1d194 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: vfs_bio.c,v 1.55 1995/07/25 05:41:57 davidg Exp $
+ * $Id: vfs_bio.c,v 1.56 1995/07/29 11:40:18 bde Exp $
*/
/*
@@ -837,13 +837,7 @@ loop:
* check for size inconsistancies
*/
if (bp->b_bcount != size) {
- if (bp->b_flags & B_VMIO) {
- allocbuf(bp, size);
- } else {
- bp->b_flags |= B_NOCACHE;
- VOP_BWRITE(bp);
- goto loop;
- }
+ allocbuf(bp, size);
}
splx(s);
return (bp);
OpenPOWER on IntegriCloud