diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2005-04-06 06:49:46 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2005-04-06 06:49:46 +0000 |
| commit | d78e0ee9fd45785c74049dff40e0788cf28329e1 (patch) | |
| tree | c9d4dc7ba1389f8675104aa6d3ad3eb45174e85c /sys/kern/vfs_subr.c | |
| parent | 81a4ac6ddb9e6cc270cc291bb5c781de57d074e4 (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_subr.c')
| -rw-r--r-- | sys/kern/vfs_subr.c | 3 |
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); } |
