aboutsummaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:32:44 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:32:44 +0000
commit19b72e1976be3b741e393c0dce1da57f4bd912ee (patch)
tree73493f247aa698af9b6fe5f0a7396a79128415ae /ufs/dir.c
parente2d7e4852ab842d893675e56e6f48871b73371dc (diff)
downloadhurd-19b72e1976be3b741e393c0dce1da57f4bd912ee.tar.gz
hurd-19b72e1976be3b741e393c0dce1da57f4bd912ee.tar.bz2
hurd-19b72e1976be3b741e393c0dce1da57f4bd912ee.zip
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* dir.c (diskfs_get_directs): Use mmap instead of vm_allocate. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_read_page): Likewise.
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index c0352d03..304c8a44 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -863,7 +863,7 @@ diskfs_get_directs (struct node *dp,
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);
/* Scan through the entries to find ENTRY. If we encounter
a -1 in the process then stop to fill it. When we run