summaryrefslogtreecommitdiff
path: root/netfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'netfs.c')
-rw-r--r--netfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/netfs.c b/netfs.c
index 6a8009432..30c303d77 100644
--- a/netfs.c
+++ b/netfs.c
@@ -431,16 +431,14 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
{
err = 0; /* hey, we got it! */
- spin_lock(&netfs_node_refcnt_lock);
/* pthread_rwlock_rdlock(&nn->lock);
* we don't have to lock nn->lock since it's ref cannot become
- * invalid as we hold netfs_node_refcnt_lock
+ * invalid
*/
if((*node = nn->node))
- (*node)->references ++;
+ netfs_nref (*node);
- spin_unlock(&netfs_node_refcnt_lock);
/* pthread_rwlock_unlock(&nn->lock); */
if(! *node)