From b84e750c4abc10e5e1fb066abf1757b1ea42315e Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 05:27:35 +0000 Subject: 1999-07-06 Thomas Bushnell, BSG * dir.c (diskfs_get_directs): Use mmap instead of vm_allocate. * hyper.c (allocate_mod_map): Likewise. (get_hypermetadata): Likewise. * pager.c (get_page_buf): Likewise. * hyper.c (diskfs_readonly_changed): Use mprotect instead of vm_protect. --- ext2fs/dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext2fs/dir.c') diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 1bfe0dd7..03e5aab9 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -867,7 +867,8 @@ 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 = (vm_address_t) 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 -- cgit v1.2.3