diff options
Diffstat (limited to 'libnetfs/nput.c')
-rw-r--r-- | libnetfs/nput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetfs/nput.c b/libnetfs/nput.c index c62b7b9f..611b37a0 100644 --- a/libnetfs/nput.c +++ b/libnetfs/nput.c @@ -23,7 +23,7 @@ void netfs_nput (struct node *np) { - spin_lock (&netfs_node_refcnt_lock); + pthread_spin_lock (&netfs_node_refcnt_lock); assert (np->references); np->references--; if (np->references == 0) @@ -31,8 +31,8 @@ netfs_nput (struct node *np) /* netfs_drop_node drops netfs_node_refcnt_lock for us. */ else { - spin_unlock (&netfs_node_refcnt_lock); - mutex_unlock (&np->lock); + pthread_spin_unlock (&netfs_node_refcnt_lock); + pthread_mutex_unlock (&np->lock); } } |