summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 22:03:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 22:03:45 +0000
commit5748b4be6f6f10b8786c486b51d1f17353983afc (patch)
tree1f29d9f664f9c3c0e94e9fc73d478d57161e1acf
parent56109334322fe8f861193cd51d21e785ae013874 (diff)
Formerly protid-rele.c.~2~
-rw-r--r--libdiskfs/protid-rele.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdiskfs/protid-rele.c b/libdiskfs/protid-rele.c
index c1d0d43b..0c5d40ed 100644
--- a/libdiskfs/protid-rele.c
+++ b/libdiskfs/protid-rele.c
@@ -15,10 +15,13 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
+
/* Called when a protid CRED has no more references. (Because references\
to protids are maintained by the port management library, this is
installed in the clean routines list.) The ports library will
free the structure for us. */
+void
diskfs_protid_rele (void *arg)
{
struct protid *cred = arg;
@@ -26,8 +29,9 @@ diskfs_protid_rele (void *arg)
if (cred->shared_object)
mach_port_deallocate (mach_task_self (), cred->shared_object);
if (cred->mapped)
- vm_deallocate (mach_task_self (), cred->mapped, vm_page_size);
- diskfs_peropen_rele (cred->po);
+ vm_deallocate (mach_task_self (), (vm_address_t) cred->mapped,
+ vm_page_size);
+ diskfs_release_peropen (cred->po);
}