diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:55:45 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:55:45 +0000 |
commit | 99901fb5c9b4a394d25e4238eadf0677093215ee (patch) | |
tree | 05c18fa3c65578282c73312215b69f4e9859a85b /ufs/sizes.c | |
parent | 9c704634732f77b5ccd28ca224eac4b71d722e4a (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/sizes.c')
-rw-r--r-- | ufs/sizes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index 5c3d12f0..58cbfc98 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -1,5 +1,5 @@ /* File growth and truncation - Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1999 Free Software Foundation This file is part of the GNU Hurd. @@ -439,7 +439,7 @@ block_extended (struct node *np, /* Undo mapping */ mach_port_deallocate (mach_task_self (), mapobj); - vm_deallocate (mach_task_self (), mapaddr, round_page (old_size)); + munmap ((caddr_t) mapaddr, round_page (old_size)); /* Now it's OK to free the old block */ ffs_blkfree (np, old_pbn, old_size); @@ -711,7 +711,7 @@ poke_pages (memory_object_t obj, { for (poke = addr; poke < addr + len; poke += vm_page_size) *(volatile int *)poke = *(volatile int *)poke; - vm_deallocate (mach_task_self (), addr, len); + munmap ((caddr_t) addr, len); } start += len; } |