summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-03 15:25:43 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-03 15:25:43 +0000
commit0c3af61a4e8e5f9d54b856efac4467fa5d5d0b86 (patch)
tree378b6087ee8b5106adc7e115662c6ffebfc932ce /libdiskfs
parent3b57ebbdb1dc6ab475cdfa593c6bbe37d2c98cd8 (diff)
(diskfs_S_io_identity): Fetch identity using fshelp_get_identity
rather than creating it ourselves.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-identity.c13
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;