Auto-commit fuse.cpp

This commit is contained in:
Antonio SJ Musumeci 2026-04-15 15:39:21 -05:00
parent 65f8b9d660
commit 646a4046b2

View file

@ -2203,7 +2203,9 @@ fuse_lib_open(fuse_req_t *req_,
if(!err)
{
mutex_lock(f.lock);
get_node(hdr_->nodeid)->open_count++;
node_t *n = get_node(hdr_->nodeid);
if(node)
node->open_count++;
mutex_unlock(f.lock);
/* The open syscall was interrupted,so it must be cancelled */
if(fuse_reply_open(req_,&ffi) == -ENOENT)