diff options
Diffstat (limited to 'libdiskfs/node-nref.c')
-rw-r--r-- | libdiskfs/node-nref.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/node-nref.c b/libdiskfs/node-nref.c index 753de65f..13cea056 100644 --- a/libdiskfs/node-nref.c +++ b/libdiskfs/node-nref.c @@ -27,14 +27,14 @@ void diskfs_nref (struct node *np) { int new_hardref; - spin_lock (&diskfs_node_refcnt_lock); + pthread_spin_lock (&diskfs_node_refcnt_lock); np->references++; new_hardref = (np->references == 1); - spin_unlock (&diskfs_node_refcnt_lock); + pthread_spin_unlock (&diskfs_node_refcnt_lock); if (new_hardref) { - mutex_lock (&np->lock); + pthread_mutex_lock (&np->lock); diskfs_new_hardrefs (np); - mutex_unlock (&np->lock); + pthread_mutex_unlock (&np->lock); } } |