summaryrefslogtreecommitdiff
path: root/ext2fs/hyper.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:00 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:00 +0000
commit701e4350e3096a2a5b4a3a57d5feee9349e9f305 (patch)
tree4fe87d502718b913c7a42cb5f02ae33541e1063e /ext2fs/hyper.c
parent9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
Diffstat (limited to 'ext2fs/hyper.c')
-rw-r--r--ext2fs/hyper.c5
1 files changed, 2 insertions, 3 deletions
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);