diff options
-rw-r--r-- | libdiskfs/io-identity.c | 13 |
1 files changed, 1 insertions, 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; |