diff options
author | mckusick <mckusick@FreeBSD.org> | 1999-07-08 17:58:55 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 1999-07-08 17:58:55 +0000 |
commit | aa7ff8691d206532addb132f69fb5bcaccd9d15f (patch) | |
tree | d5b7646ef8855a2ecfb244a8c387564638c818d9 /sys/kern/vfs_bio.c | |
parent | c7259c121a2cbbcb429257a76384e6573f1f1aa9 (diff) | |
download | FreeBSD-src-aa7ff8691d206532addb132f69fb5bcaccd9d15f.zip FreeBSD-src-aa7ff8691d206532addb132f69fb5bcaccd9d15f.tar.gz |
Condition in KASSERT was reversed.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 47e8276..57c9808 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -11,7 +11,7 @@ * 2. Absolutely no warranty of function or purpose is made by the author * John S. Dyson. * - * $Id: vfs_bio.c,v 1.220 1999/07/04 00:25:27 mckusick Exp $ + * $Id: vfs_bio.c,v 1.221 1999/07/08 06:05:52 mckusick Exp $ */ /* @@ -427,7 +427,7 @@ bremfree(struct buf * bp) if (bp->b_qindex == QUEUE_EMPTYKVA) { kvafreespace -= bp->b_kvasize; } - KASSERT(BUF_REFCNT(bp) == 0, ("bremfree: bp %p not locked",bp)); + KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not locked",bp)); TAILQ_REMOVE(&bufqueues[bp->b_qindex], bp, b_freelist); bp->b_qindex = QUEUE_NONE; runningbufspace += bp->b_bufsize; |