summaryrefslogtreecommitdiff
path: root/ufs/hyper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/hyper.c')
-rw-r--r--ufs/hyper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ufs/hyper.c b/ufs/hyper.c
index c5101141..deb4a5df 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -138,8 +138,7 @@ get_hypermetadata (void)
/* Free previous values. */
if (zeroblock)
- vm_deallocate (mach_task_self(),
- (vm_address_t)zeroblock, sblock->fs_bsize);
+ munmap ((caddr_t) zeroblock, sblock->fs_bsize);
if (csum)
free (csum);
@@ -314,7 +313,7 @@ diskfs_set_hypermetadata (int wait, int clean)
err = EIO;
}
- vm_deallocate (mach_task_self (), (vm_address_t)buf, read);
+ munmap (buf, read);
if (err)
{