From 5748b4be6f6f10b8786c486b51d1f17353983afc Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 4 Feb 1994 22:03:45 +0000 Subject: Formerly protid-rele.c.~2~ --- libdiskfs/protid-rele.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libdiskfs/protid-rele.c') 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); } -- cgit v1.2.3