Print out the queue index if it's found to be inconsistent.

This commit is contained in:
David Greenman 1996-01-06 23:58:03 +00:00
parent 301c758249
commit 7548aeb5c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13294

View File

@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
* $Id: vfs_bio.c,v 1.81 1996/01/05 20:12:33 wollman Exp $
* $Id: vfs_bio.c,v 1.82 1996/01/06 23:23:02 davidg Exp $
*/
/*
@ -664,7 +664,8 @@ getnewbuf(int slpflag, int slptimeo, int doingvmio)
/* can we constitute a new buffer? */
if ((bp = bufqueues[QUEUE_EMPTY].tqh_first)) {
if (bp->b_qindex != QUEUE_EMPTY)
panic("getnewbuf: inconsistent EMPTY queue");
panic("getnewbuf: inconsistent EMPTY queue, qindex=%d",
bp->b_qindex);
bremfree(bp);
goto fillbuf;
}
@ -676,10 +677,12 @@ getnewbuf(int slpflag, int slptimeo, int doingvmio)
*/
if ((bp = bufqueues[QUEUE_AGE].tqh_first)) {
if (bp->b_qindex != QUEUE_AGE)
panic("getnewbuf: inconsistent AGE queue");
panic("getnewbuf: inconsistent AGE queue, qindex=%d",
bp->b_qindex);
} else if ((bp = bufqueues[QUEUE_LRU].tqh_first)) {
if (bp->b_qindex != QUEUE_LRU)
panic("getnewbuf: inconsistent LRU queue");
panic("getnewbuf: inconsistent LRU queue, qindex=%d",
bp->b_qindex);
}
if (!bp) {
/* wait for a free buffer of any kind */