From 0ced7fdbc6e955701ff5355853f39f1432cec079 Mon Sep 17 00:00:00 2001 From: dg Date: Thu, 25 May 1995 03:38:11 +0000 Subject: 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 --- sys/vm/vm_swap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/vm/vm_swap.c') diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 2191a73..010ba9d 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -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 @@ -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; -- cgit v1.1