summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-01-02 21:14:17 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-01-02 21:14:17 +0100
commitbdf08b62d3c406f7d29b90fb5ca67f64404fc708 (patch)
treed1ee3a307d5dda85297e8c24aa7de69ffab5c185
parent0ef6093e3df84027e6da5740985951c47fad6eca (diff)
Update accessing refcount
-rw-r--r--netfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs.c b/netfs.c
index 1b006a3fc..72fe5af7f 100644
--- a/netfs.c
+++ b/netfs.c
@@ -79,7 +79,7 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir,
if (*np != dir)
pthread_mutex_lock (&(*np)->lock);
- debug (("Node %s: %i references", name, (*np)->references));
+ debug (("Node %s: %i references", name, refcount_references(&(*np)->refcounts)));
netfs_nref (*np);
}
@@ -642,7 +642,7 @@ netfs_attempt_unlink (struct iouser *user, struct node *dir,
{
pthread_mutex_lock (&node->lock);
- debug (("Node %s: %i references", name, node->references));
+ debug (("Node %s: %i references", name, refcount_references(&node->refcounts)));
err = fshelp_isowner (&node->nn_stat, user);
if (!err)
@@ -757,7 +757,7 @@ netfs_attempt_create_file (struct iouser *user, struct node *dir,
/* Lock the new node and add a reference to it on success. */
if (!err && *np)
{
- debug (("Node %s: %i references", name, (*np)->references));
+ debug (("Node %s: %i references", name, refcount_references(&(*np)->refcounts)));
pthread_mutex_lock (&(*np)->lock);
netfs_nref (*np);
}