summaryrefslogtreecommitdiff
path: root/libdiskfs/file-reparent.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/file-reparent.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/file-reparent.c')
-rw-r--r--libdiskfs/file-reparent.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libdiskfs/file-reparent.c b/libdiskfs/file-reparent.c
index 2520c8a2..d04cd798 100644
--- a/libdiskfs/file-reparent.c
+++ b/libdiskfs/file-reparent.c
@@ -46,12 +46,10 @@ diskfs_S_file_reparent (struct protid *cred, mach_port_t parent,
{
/* Remove old shadow root state. */
if (new_cred->po->shadow_root && new_cred->po->shadow_root != node)
- {
- mutex_lock (&new_cred->po->shadow_root->lock);
- diskfs_nput (new_cred->po->shadow_root);
- }
+ diskfs_nrele (new_cred->po->shadow_root);
if (new_cred->po->shadow_root_parent)
- mach_port_deallocate (mach_task_self (), new_cred->po->shadow_root_parent);
+ mach_port_deallocate (mach_task_self (),
+ new_cred->po->shadow_root_parent);
/* And install PARENT instead. */
new_cred->po->shadow_root = node;