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
commit99901fb5c9b4a394d25e4238eadf0677093215ee (patch)
tree05c18fa3c65578282c73312215b69f4e9859a85b /ufs/hyper.c
parent9c704634732f77b5ccd28ca224eac4b71d722e4a (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)
{