Merge pull request #968 from trapexit/fix

Fix regression from remember_node refactor
This commit is contained in:
trapexit 2021-09-30 22:14:51 -04:00 committed by GitHub
commit 88b91161e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1299,8 +1299,11 @@ void
unlink_node(struct fuse *f,
struct node *node)
{
assert(node->nlookup > 1);
node->nlookup--;
if(remember_nodes(f))
{
assert(node->nlookup > 1);
node->nlookup--;
}
unhash_name(f,node);
}