Removed check for sw_dev == NODEV; this is a normal condition for swap

over NFS and was gratuitously panicing when it happens.

Reviewed by:	John Dyson
Submitted by:	Pierre Beyssac via Poul-Henning Kamp
This commit is contained in:
David Greenman 1995-05-25 03:38:11 +00:00
parent a3028ab123
commit 956e9ca5a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8743

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
* $Id: vm_swap.c,v 1.18 1995/05/18 05:09:54 davidg Exp $
* $Id: vm_swap.c,v 1.19 1995/05/19 03:27:08 davidg Exp $
*/
#include <sys/param.h>
@ -95,8 +95,7 @@ swstrategy(bp)
biodone(bp);
return;
}
if ((bp->b_dev = sp->sw_dev) == NODEV)
panic("swstrategy");
bp->b_dev = sp->sw_dev;
if (sp->sw_vp == NULL) {
bp->b_error = ENODEV;
bp->b_flags |= B_ERROR;