diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2005-06-13 00:45:05 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2005-06-13 00:45:05 +0000 |
commit | 748c92fbad7dc6a795902dd59d99c7f1c79b3c28 (patch) | |
tree | b42e7a062d9350e19584430ddb456e623c229245 /sys/kern/vfs_bio.c | |
parent | 2afa4593b00171b8989d178dded2a35e80eea52b (diff) | |
download | src-748c92fbad7dc6a795902dd59d99c7f1c79b3c28.tar.gz src-748c92fbad7dc6a795902dd59d99c7f1c79b3c28.zip |
- Split one KASSERT in bremfree() into two to aid in debugging.
Sponsored by: Isilon Systems, Inc.
Notes
Notes:
svn path=/head/; revision=147325
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index b9dd64cbd299..b33482ee1351 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -644,7 +644,9 @@ bremfree(struct buf *bp) CTR3(KTR_BUF, "bremfree(%p) vp %p flags %X", bp, bp->b_vp, bp->b_flags); KASSERT(BUF_REFCNT(bp), ("bremfree: buf must be locked.")); - KASSERT((bp->b_flags & B_REMFREE) == 0 && bp->b_qindex != QUEUE_NONE, + KASSERT((bp->b_flags & B_REMFREE) == 0, + ("bremfree: buffer %p already marked for delayed removal.", bp)); + KASSERT(bp->b_qindex != QUEUE_NONE, ("bremfree: buffer %p not on a queue.", bp)); bp->b_flags |= B_REMFREE; |