diff options
author | phk <phk@FreeBSD.org> | 1999-07-17 19:59:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-07-17 19:59:55 +0000 |
commit | 09327a40f900b3f22af934919a8b9ed051dabcd2 (patch) | |
tree | 8253a3993f8971557000eff659fe94de00c31106 /sys/vm/vm_swap.c | |
parent | bd8b17658fcecd9dff86e540fd4c8b43f06315c9 (diff) | |
download | FreeBSD-src-09327a40f900b3f22af934919a8b9ed051dabcd2.zip FreeBSD-src-09327a40f900b3f22af934919a8b9ed051dabcd2.tar.gz |
Add a field to struct swdevt to avoid a bogus udev2dev() call.
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index b9a286f..cf28eef 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.76 1999/07/07 09:12:44 ache Exp $ + * $Id: vm_swap.c,v 1.77 1999/07/17 18:43:50 phk Exp $ */ #include "opt_devfs.h" @@ -156,7 +156,7 @@ swstrategy(bp) biodone(bp); return; } - bp->b_dev = udev2dev(sp->sw_dev, 2); + bp->b_dev = sp->sw_device; if (sp->sw_vp == NULL) { bp->b_error = ENODEV; bp->b_flags |= B_ERROR; @@ -315,6 +315,7 @@ swaponvp(p, vp, dev, nblks) sp->sw_vp = vp; sp->sw_dev = dev2udev(dev); + sp->sw_device = dev; sp->sw_flags |= SW_FREED; sp->sw_nblks = nblks; |