* usermux/mux.c: Use netfs_nref to increase hard references of the node.
---
 usermux/mux.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/usermux/mux.c b/usermux/mux.c
index bfa95fd..7c57f94 100644
--- a/usermux/mux.c
+++ b/usermux/mux.c
@@ -298,10 +298,8 @@ lookup_cached (struct usermux *mux, const char *user, int 
purge,
 
       if (strcasecmp (user, nm->name) == 0)
        {
-         pthread_spin_lock (&netfs_node_refcnt_lock);
-         if (nm->node)
-           nm->node->references++;
-         pthread_spin_unlock (&netfs_node_refcnt_lock);
+          if (nm->node)
+            netfs_nref (nm->node);
 
          if (nm->node)
            {
-- 
2.6.4


Reply via email to