summaryrefslogtreecommitdiff
path: root/isofs/lookup.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:47 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:47 +0000
commitf51cf6ff2a01cb9f9fb9bee7dc8dcbcf963399b5 (patch)
tree7f1bffc55fd63e5d1248f70ece7d1fb1bb1a19d0 /isofs/lookup.c
parentaaef9904fb0393a391c683a8965e633d96bd63d8 (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_get_directs): Use munmap instead of vm_deallocate.
Diffstat (limited to 'isofs/lookup.c')
-rw-r--r--isofs/lookup.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/isofs/lookup.c b/isofs/lookup.c
index d7c2db39..b33dab00 100644
--- a/isofs/lookup.c
+++ b/isofs/lookup.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
Written by Thomas Bushnell, n/BSG.
This file is part of the GNU Hurd.
@@ -241,7 +241,7 @@ diskfs_get_directs (struct node *dp,
if (err)
{
if (ouralloc)
- vm_deallocate (mach_task_self (), (vm_address_t)*data, allocsize);
+ munmap (*data, allocsize);
return err;
}
@@ -267,7 +267,7 @@ diskfs_get_directs (struct node *dp,
{
/* Not that many entries in the directory; return nothing. */
if (allocsize > *datacnt)
- vm_deallocate (mach_task_self (), (vm_address_t) data, allocsize);
+ munmap (data, allocsize);
*datacnt = 0;
*amt = 0;
return 0;
@@ -342,8 +342,7 @@ diskfs_get_directs (struct node *dp,
bcopy ((void *) *data, (void *)newdata, datap - *data);
if (ouralloc)
- vm_deallocate (mach_task_self (), (vm_address_t) *data,
- allocsize / 2);
+ munmap (*data, allocsize / 2);
datap = (char *) newdata + (datap - *data);
*data = (char *) newdata;
@@ -359,7 +358,7 @@ diskfs_get_directs (struct node *dp,
{
diskfs_end_catch_exception ();
if (ouralloc)
- vm_deallocate (mach_task_self (), (vm_address_t) *data, allocsize);
+ munmap (*data, allocsize);
return err;
}
@@ -390,8 +389,8 @@ diskfs_get_directs (struct node *dp,
the excess. */
if (ouralloc
&& round_page (datap - *data) < round_page (allocsize))
- vm_deallocate (mach_task_self (), round_page (datap),
- round_page (allocsize) - round_page (datap - *data));
+ munmap ((caddr_t) round_page (datap),
+ round_page (allocsize) - round_page (datap - *data));
/* Return */
*amt = i;