diff options
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/device_pager.c | 6 | ||||
-rw-r--r-- | sys/vm/vm_swap.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index 6302f6d..eaa848a 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)device_pager.c 8.1 (Berkeley) 6/11/93 - * $Id: device_pager.c,v 1.16 1995/12/07 12:48:01 davidg Exp $ + * $Id: device_pager.c,v 1.17 1995/12/11 04:57:59 dyson Exp $ */ #include <sys/param.h> @@ -97,7 +97,7 @@ dev_pager_alloc(handle, size, prot, foff) * Make sure this device can be mapped. */ dev = (dev_t) (u_long) handle; - mapfunc = cdevsw[major(dev)].d_mmap; + mapfunc = cdevsw[major(dev)]->d_mmap; if (mapfunc == NULL || mapfunc == (d_mmap_t *)nullop) { printf("obsolete map function %p\n", (void *)mapfunc); return (NULL); @@ -193,7 +193,7 @@ dev_pager_getpages(object, m, count, reqpage) dev = (dev_t) (u_long) object->handle; offset = m[reqpage]->pindex + OFF_TO_IDX(object->paging_offset); prot = PROT_READ; /* XXX should pass in? */ - mapfunc = cdevsw[major(dev)].d_mmap; + mapfunc = cdevsw[major(dev)]->d_mmap; if (mapfunc == NULL || mapfunc == (d_mmap_t *)nullop) panic("dev_pager_getpage: no map function"); diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 2f5895c..7a2c53a 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.30 1995/12/08 23:23:00 phk Exp $ + * $Id: vm_swap.c,v 1.31 1995/12/10 19:53:42 bde Exp $ */ #include <sys/param.h> @@ -239,8 +239,8 @@ swaponvp(p, vp, dev, nblks) if (error) return (error); - if (nblks == 0 && (bdevsw[major(dev)].d_psize == 0 || - (nblks = (*bdevsw[major(dev)].d_psize) (dev)) == -1)) { + if (nblks == 0 && (bdevsw[major(dev)]->d_psize == 0 || + (nblks = (*bdevsw[major(dev)]->d_psize) (dev)) == -1)) { (void) VOP_CLOSE(vp, FREAD | FWRITE, p->p_ucred, p); return (ENXIO); } |