diff options
author | peter <peter@FreeBSD.org> | 1999-06-28 12:34:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-06-28 12:34:40 +0000 |
commit | 5ecb2e0dad28c2c9106b9f0d935131cbb4cfcbda (patch) | |
tree | d4493ddaf28aeb7c374e99a51ffac53b18ff31b1 /sys/nfs | |
parent | debb5dbb90e4676dce96c3a849db90b3e874494b (diff) | |
download | FreeBSD-src-5ecb2e0dad28c2c9106b9f0d935131cbb4cfcbda.zip FreeBSD-src-5ecb2e0dad28c2c9106b9f0d935131cbb4cfcbda.tar.gz |
Fix a KASSERT() that was negated and lead to:
nfs_strategy: buffer 0xxxxx not locked
when you attempted to write and had INVARIANTS turned on.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 9e5ceb8..f146631 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.131 1999/06/16 23:27:48 mckusick Exp $ + * $Id: nfs_vnops.c,v 1.132 1999/06/26 02:46:32 mckusick Exp $ */ @@ -2647,7 +2647,7 @@ nfs_strategy(ap) int error = 0; KASSERT(!(bp->b_flags & B_DONE), ("nfs_strategy: buffer %p unexpectedly marked B_DONE", bp)); - KASSERT(BUF_REFCNT(bp) == 0, ("nfs_strategy: buffer %p not locked", bp)); + KASSERT(BUF_REFCNT(bp) > 0, ("nfs_strategy: buffer %p not locked", bp)); if (bp->b_flags & B_PHYS) panic("nfs physio"); |