diff options
author | phk <phk@FreeBSD.org> | 1999-06-01 17:11:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-06-01 17:11:27 +0000 |
commit | 1efee9b283477725d4a38202c1cc82b8c0726c52 (patch) | |
tree | 5e9eebc43e239fdd0feb7cb3f2c5ad978a4493d2 /sys/vm/vm_swap.c | |
parent | f062ad877cb136630a0961452b636e1dfba9602d (diff) | |
download | FreeBSD-src-1efee9b283477725d4a38202c1cc82b8c0726c52.zip FreeBSD-src-1efee9b283477725d4a38202c1cc82b8c0726c52.tar.gz |
Shorten a detour around dev_t to get a udev_t created.
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index d8d7540..aefeb77 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.69 1999/05/30 16:53:49 phk Exp $ + * $Id: vm_swap.c,v 1.70 1999/05/31 11:29:30 phk Exp $ */ #include "opt_devfs.h" @@ -278,7 +278,6 @@ swaponvp(p, vp, dev, nblks) register long blk; swblk_t dvbase; int error; - dev_t swapdev = makedev(BDEV_MAJOR, 0); ASSERT_VOP_UNLOCKED(vp, "swaponvp"); for (sp = swdevt, index = 0 ; index < nswdev; index++, sp++) { @@ -349,7 +348,7 @@ swaponvp(p, vp, dev, nblks) panic("Cannot get vnode for swapdev"); vp1 = nvp; vp1->v_type = VBLK; - if ((nvp = checkalias(vp1, dev2udev(swapdev), + if ((nvp = checkalias(vp1, umakedev(BDEV_MAJOR, 0), (struct mount *) 0))) { vput(vp1); vp1 = nvp; |