summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}