summaryrefslogtreecommitdiff
path: root/libdiskfs/node-nputl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/node-nputl.c')
-rw-r--r--libdiskfs/node-nputl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/node-nputl.c b/libdiskfs/node-nputl.c
index 45b109ea..19596654 100644
--- a/libdiskfs/node-nputl.c
+++ b/libdiskfs/node-nputl.c
@@ -25,14 +25,14 @@
void
diskfs_nput_light (struct node *np)
{
- spin_lock (&diskfs_node_refcnt_lock);
+ pthread_spin_lock (&diskfs_node_refcnt_lock);
assert (np->light_references);
np->light_references--;
if (np->references + np->light_references == 0)
diskfs_drop_node (np);
else
{
- spin_unlock (&diskfs_node_refcnt_lock);
- mutex_unlock (&np->lock);
+ pthread_spin_unlock (&diskfs_node_refcnt_lock);
+ pthread_mutex_unlock (&np->lock);
}
}