summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-02-18 02:55:09 +0000
committerdg <dg@FreeBSD.org>1995-02-18 02:55:09 +0000
commitae440731a6292c25b69a5f9d27ba02494370afa5 (patch)
tree610fa9a1ef5a4347091eb26c2399e1f5cfc36ce6 /sys
parent91ff8e23650e68f9d2850f3281c8627beb12545b (diff)
downloadFreeBSD-src-ae440731a6292c25b69a5f9d27ba02494370afa5.zip
FreeBSD-src-ae440731a6292c25b69a5f9d27ba02494370afa5.tar.gz
Only clear B_VMIO in brelse() - a bunch of special processing is required
whenever this happens, and that wasn't occurring in some cases.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index ec67a3e..e61a5eb 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.26 1995/01/26 03:34:31 davidg Exp $
+ * $Id: vfs_bio.c,v 1.27 1995/02/03 03:35:56 davidg Exp $
*/
/*
@@ -970,8 +970,6 @@ allocbuf(struct buf * bp, int size, int vmio)
}
VM_WAIT;
if (vmio && (bp->b_flags & B_PDWANTED)) {
- --nvmio;
- bp->b_flags &= ~B_VMIO;
bp->b_flags |= B_INVAL;
brelse(bp);
return 0;
@@ -994,8 +992,6 @@ allocbuf(struct buf * bp, int size, int vmio)
}
}
if (vmio && (bp->b_flags & B_PDWANTED)) {
- --nvmio;
- bp->b_flags &= ~B_VMIO;
bp->b_flags |= B_INVAL;
brelse(bp);
VM_WAIT;
@@ -1030,8 +1026,6 @@ allocbuf(struct buf * bp, int size, int vmio)
}
VM_WAIT;
if (vmio && (bp->b_flags & B_PDWANTED)) {
- --nvmio;
- bp->b_flags &= ~B_VMIO;
bp->b_flags |= B_INVAL;
brelse(bp);
return 0;
OpenPOWER on IntegriCloud