diff options
author | msmith <msmith@FreeBSD.org> | 1999-07-07 04:07:03 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1999-07-07 04:07:03 +0000 |
commit | 2d9dfcac47bcf693cdd1bb89aed884e8c54a70be (patch) | |
tree | 6032e405b0fcc96bf767cdc2213f0df2a7d1f639 /sys/vm/vm_swap.c | |
parent | 0d33984f04986c1e25d9f69455a56ac4b66485f6 (diff) | |
download | FreeBSD-src-2d9dfcac47bcf693cdd1bb89aed884e8c54a70be.zip FreeBSD-src-2d9dfcac47bcf693cdd1bb89aed884e8c54a70be.tar.gz |
Reinstate the previous fix for the broken export of a dev_t in sw_dev, convert
back to a dev_t when the value is actually used.
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 605fabf..1f76e39 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.72 1999/06/26 02:46:49 mckusick Exp $ + * $Id: vm_swap.c,v 1.74 1999/07/07 03:03:59 green Exp $ */ #include "opt_devfs.h" @@ -156,7 +156,7 @@ swstrategy(bp) biodone(bp); return; } - bp->b_dev = sp->sw_dev; + bp->b_dev = udev2dev(sp->sw_dev); if (sp->sw_vp == NULL) { bp->b_error = ENODEV; bp->b_flags |= B_ERROR; @@ -314,7 +314,7 @@ swaponvp(p, vp, dev, nblks) nblks = dbtoc(nblks); sp->sw_vp = vp; - sp->sw_dev = dev; + sp->sw_dev = dev2udev(dev); sp->sw_flags |= SW_FREED; sp->sw_nblks = nblks; |