From 8150957a018c978bd80f13076b26504efaa70237 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 30 Sep 2021 22:13:29 -0400 Subject: [PATCH] Fix regression from remember_node refactor --- libfuse/lib/fuse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libfuse/lib/fuse.c b/libfuse/lib/fuse.c index a0c033d3..56cc34db 100644 --- a/libfuse/lib/fuse.c +++ b/libfuse/lib/fuse.c @@ -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); }