summaryrefslogtreecommitdiff
path: root/isofs/lookup.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:28 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:28 +0000
commit6ae05c477f2d8931fc365f6f009817e6c26087fd (patch)
treeea4e8aa6f9cca708d8b8cf1d9130f53e5d09d2c9 /isofs/lookup.c
parentc34fe8e00d5b049550f462155238d6e31e08b234 (diff)
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_get_directs): Use mmap instead of vm_allocate. * pager.c (pager_read_page): Likewise.
Diffstat (limited to 'isofs/lookup.c')
-rw-r--r--isofs/lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isofs/lookup.c b/isofs/lookup.c
index b33dab00..2e3465b9 100644
--- a/isofs/lookup.c
+++ b/isofs/lookup.c
@@ -233,7 +233,7 @@ diskfs_get_directs (struct node *dp,
allocsize = bufsiz ? round_page (bufsiz) : vm_page_size * 4;
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);
ouralloc = 1;
}