summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2005-04-06 06:49:46 +0000
committerJeff Roberson <jeff@FreeBSD.org>2005-04-06 06:49:46 +0000
commitd78e0ee9fd45785c74049dff40e0788cf28329e1 (patch)
treec9d4dc7ba1389f8675104aa6d3ad3eb45174e85c /sys/kern/vfs_subr.c
parent81a4ac6ddb9e6cc270cc291bb5c781de57d074e4 (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 52afc7ef7b91..fcd61dd40a22 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1040,7 +1040,10 @@ flushbuflist(bufv, flags, bo, slpflag, slptimeo)
BO_LOCK(bo);
return (error != ENOLCK ? error : EAGAIN);
}
+ KASSERT(bp->b_bufobj == bo,
+ ("wrong b_bufobj %p should be %p", bp->b_bufobj, bo));
if (bp->b_bufobj != bo) { /* XXX: necessary ? */
+ BUF_UNLOCK(bp);
BO_LOCK(bo);
return (EAGAIN);
}