summaryrefslogtreecommitdiff
path: root/ext2fs/hyper.c
diff options
context:
space:
mode:
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);