From 0c3af61a4e8e5f9d54b856efac4467fa5d5d0b86 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 3 Jul 1996 15:25:43 +0000 Subject: (diskfs_S_io_identity): Fetch identity using fshelp_get_identity rather than creating it ourselves. --- libdiskfs/io-identity.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c index 6bc6f86c..53302151 100644 --- a/libdiskfs/io-identity.c +++ b/libdiskfs/io-identity.c @@ -39,18 +39,7 @@ diskfs_S_io_identity (struct protid *cred, np = cred->po->np; mutex_lock (&np->lock); - if (np->identity == MACH_PORT_NULL) - { - err = mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, - &np->identity); - if (err) - { - mutex_unlock (&np->lock); - return err; - } - } - - *id = np->identity; + *id = fshelp_get_identity (diskfs_port_bucket, np->dn_stat.st_ino); *idtype = MACH_MSG_TYPE_MAKE_SEND; *fsys = diskfs_fsys_identity; *fsystype = MACH_MSG_TYPE_MAKE_SEND; -- cgit v1.2.3