summaryrefslogtreecommitdiff
path: root/ufs/hyper.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:55:45 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:55:45 +0000
commit022849d0b80dcb7b46f4f9dcb7c3af7bba95cf39 (patch)
tree3a375c14d3fba01813422198666c104282394c0c /ufs/hyper.c
parentca6b1e89cd646368a08734e55dfb5da7ac1e2465 (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. * sizes.c (block_extended): Likewise. (poke_pages): Likewise. * hyper.c (get_hypermetadata): Likewise. (diskfs_set_hypermetadata): Likewise.
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)
{