From 701e4350e3096a2a5b4a3a57d5feee9349e9f305 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:49:00 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * dir.c (diskfs_lookup_hard): Use munmap instead of vm_deallocate. (diskfs_direnter_hard): Likewise. (diskfs_dirremove_hard): Likewise. (diskfs_dirrewrite_hard): Likewise. (diskfs_dirempty): Likewise. (diskfs_drop_dirstat): Likewise. (diskfs_get_directs): Likewise. * hyper.c (allocate_mod_map): Likewise. (get_hypermetadata): Likewise. * pager.c (free_page_buf): Likewise. * truncate.c (poke_pages): Likewise. --- ext2fs/hyper.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext2fs/hyper.c') diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index 6a5e1fd0..0132d2e6 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -34,8 +34,7 @@ allocate_mod_map (void) if (modified_global_blocks && mod_map_size) /* Get rid of the old one. */ - vm_deallocate (mach_task_self (), - (vm_address_t)modified_global_blocks, mod_map_size); + munmap (modified_global_blocks, mod_map_size); if (!diskfs_readonly && block_size < vm_page_size) /* If the block size is too small, we have to take extra care when @@ -65,7 +64,7 @@ get_hypermetadata (void) ext2_panic ("can't read superblock: %s", strerror (err)); if (zeroblock) - vm_deallocate (mach_task_self (), zeroblock, block_size); + munmap ((caddr_t) zeroblock, block_size); sblock = (struct ext2_super_block *)boffs_ptr (SBLOCK_OFFS); -- cgit v1.2.3