summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2005-10-09 22:41:25 +0000
committertegge <tegge@FreeBSD.org>2005-10-09 22:41:25 +0000
commit9797c80fe8f42499bdb5797944e4508e53a27c19 (patch)
tree3d6c8150a0a7a098d7432b186ee794d46b3e88a4 /sys
parentbf4479ad5f9a17b30bc4b21857a80107b1e7ee3b (diff)
downloadFreeBSD-src-9797c80fe8f42499bdb5797944e4508e53a27c19.zip
FreeBSD-src-9797c80fe8f42499bdb5797944e4508e53a27c19.tar.gz
Release clean buffer with wrong size and no dependencies also for non-VMIO
case.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index dd11298..f475750 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2396,8 +2396,7 @@ loop:
bp->b_flags |= B_NOCACHE;
bwrite(bp);
} else {
- if ((bp->b_flags & B_VMIO) &&
- (LIST_FIRST(&bp->b_dep) == NULL)) {
+ if (LIST_FIRST(&bp->b_dep) == NULL) {
bp->b_flags |= B_RELBUF;
brelse(bp);
} else {
OpenPOWER on IntegriCloud