From 36764cedd63af870d7baba5a397880bb933ed136 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 05:31:15 +0000 Subject: 1999-07-09 Thomas Bushnell, BSG * ops.c (netfs_get_dirents): Use mmap instead of vm_allocate. * pager.c (pager_read_page): Likewise. --- nfs/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nfs/ops.c') diff --git a/nfs/ops.c b/nfs/ops.c index 5e125033..c8e7615b 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -1658,7 +1658,7 @@ netfs_get_dirents (struct iouser *cred, struct node *np, else allocsize = round_page (bufsiz); if (allocsize > *datacnt) - vm_allocate (mach_task_self (), (vm_address_t *)data, allocsize, 1); + *data = mmap (0, allocsize, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); /* Skip ahead to the correct entry. */ bp = buf; -- cgit v1.2.3