Introduce a new panic() condition in case I missed something.

This commit is contained in:
mycroft 1993-04-28 03:04:57 +00:00
parent 95090f0a13
commit 87dc98f60b

View File

@ -47,7 +47,7 @@
*
* @(#)swap_pager.c 7.4 (Berkeley) 5/7/91
*/
static char rcsid[] = "$Header: /cvsroot/src/sys/vm/Attic/swap_pager.c,v 1.2 1993/03/21 18:04:42 cgd Exp $";
static char rcsid[] = "$Header: /cvsroot/src/sys/vm/Attic/swap_pager.c,v 1.3 1993/04/28 03:04:57 mycroft Exp $";
/*
* Quick hack to page to dedicated partition(s).
@ -594,6 +594,10 @@ swap_pager_io(swp, m, flags)
bp->b_flags = B_BUSY | (flags & B_READ);
bp->b_proc = &proc0; /* XXX (but without B_PHYS set this is ok) */
bp->b_un.b_addr = (caddr_t)kva;
#ifndef MYCROFT_IS_A_DORK
if (!swb->swb_block)
panic("swap_pager_io: page to first block\n");
#endif
bp->b_blkno = swb->swb_block + btodb(off);
VHOLD(swapdev_vp);
bp->b_vp = swapdev_vp;