summaryrefslogtreecommitdiff
path: root/libdiskfs/peropen-rele.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1998-04-13 19:36:24 +0000
committerThomas Bushnell <thomas@gnu.org>1998-04-13 19:36:24 +0000
commit94208c9d3f46f221d50886a0304dd77f18b9882f (patch)
tree38fbb43f788bd2a227befbcc1280b9be4d9b55cd /libdiskfs/peropen-rele.c
parent75a6d72b6e15906968c8a545f923dbebb47b6402 (diff)
Tue Sep 23 15:28:57 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* file-reparent.c (diskfs_S_file_reparent): Use diskfs_nrele instead of protocol-violating up-tree lock. * peropen-rele.c (diskfs_release_peropen): Likewise.
Diffstat (limited to 'libdiskfs/peropen-rele.c')
-rw-r--r--libdiskfs/peropen-rele.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdiskfs/peropen-rele.c b/libdiskfs/peropen-rele.c
index 4b90aef5..6974e86a 100644
--- a/libdiskfs/peropen-rele.c
+++ b/libdiskfs/peropen-rele.c
@@ -34,10 +34,8 @@ diskfs_release_peropen (struct peropen *po)
mach_port_deallocate (mach_task_self (), po->root_parent);
if (po->shadow_root && po->shadow_root != po->np)
- {
- mutex_lock (&po->shadow_root->lock);
- diskfs_nput (po->shadow_root);
- }
+ diskfs_nrele (po->shadow_root);
+
if (po->shadow_root_parent)
mach_port_deallocate (mach_task_self (), po->shadow_root_parent);