Dump the actual bad values when this assertion is tripped.

This commit is contained in:
alfred 2004-07-12 04:13:38 +00:00
parent de2b49b3bc
commit 45c9fe9da7

View File

@ -2370,7 +2370,9 @@ loop:
*/
VI_LOCK(rootvp);
KASSERT(busy > 0, ("vflush: not busy"));
KASSERT(rootvp->v_usecount >= rootrefs, ("vflush: rootrefs"));
KASSERT(rootvp->v_usecount >= rootrefs,
("vflush: usecount %d < rootrefs %d",
rootvp->v_usecount, rootrefs));
if (busy == 1 && rootvp->v_usecount == rootrefs) {
vgonel(rootvp, td);
busy = 0;