diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 21:12:00 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 21:12:00 +0100 |
commit | c73de316296e7aa0b1e5b6d26751ab4402b628ab (patch) | |
tree | 0b541aae7a52b0fe40685eda396c7b83f0432c66 | |
parent | bf5b6ff78d5b9d77e33c104da8f9927e2e901dc7 (diff) |
Update locking
-rw-r--r-- | socketio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |