diff options
author | phk <phk@FreeBSD.org> | 1999-08-13 10:29:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-13 10:29:38 +0000 |
commit | 7b7ae40370ce27419c2f1c0cda88ea6525a1066d (patch) | |
tree | 3305e31c2721a7973c3c9558eef0c23d9ba30704 /sys/vm | |
parent | 683c2698ff60010cda4f6821ac884b7beb2f4cbf (diff) | |
download | FreeBSD-src-7b7ae40370ce27419c2f1c0cda88ea6525a1066d.zip FreeBSD-src-7b7ae40370ce27419c2f1c0cda88ea6525a1066d.tar.gz |
The bdevsw() and cdevsw() are now identical, so kill the former.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_swap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 39f9cc4..387cfeb 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.79 1999/07/20 21:29:11 green Exp $ + * $Id: vm_swap.c,v 1.80 1999/08/08 18:43:05 phk Exp $ */ #include "opt_devfs.h" @@ -221,7 +221,7 @@ swapon(p, uap) switch (vp->v_type) { case VBLK: dev = vp->v_rdev; - if (bdevsw(dev) == NULL) { + if (devsw(dev) == NULL) { error = ENXIO; break; } @@ -293,8 +293,8 @@ swaponvp(p, vp, dev, nblks) if (error) return (error); - if (nblks == 0 && dev != NODEV && (bdevsw(dev)->d_psize == 0 || - (nblks = (*bdevsw(dev)->d_psize) (dev)) == -1)) { + if (nblks == 0 && dev != NODEV && (devsw(dev)->d_psize == 0 || + (nblks = (*devsw(dev)->d_psize) (dev)) == -1)) { (void) VOP_CLOSE(vp, FREAD | FWRITE, p->p_ucred, p); return (ENXIO); } |