From c73de316296e7aa0b1e5b6d26751ab4402b628ab Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 2 Jan 2017 21:12:00 +0100 Subject: Update locking --- socketio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socketio.c b/socketio.c index 0bcf29b21..fec8d9378 100644 --- a/socketio.c +++ b/socketio.c @@ -1071,11 +1071,12 @@ void netfs_node_norefs (struct node *np) { struct node *dir = np->nn->dir; + struct references result; node_uninstall (np); node_destroy (np); if (np->nn->flags & PROTOCOL_NODE) - dir->references--; + refcounts_demote (&dir->refcounts, &result); } -- cgit v1.2.3