mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 14:36:36 -05:00
fuse.cpp
This commit is contained in:
parent
4380acb512
commit
499c4cb1ef
1 changed files with 20 additions and 0 deletions
|
|
@ -2030,6 +2030,26 @@ fuse_do_release(fuse_req_ctx_t *req_ctx_,
|
|||
mutex_unlock(&f.lock);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
fuse_do_releasedir(fuse_req_ctx_t *req_ctx_,
|
||||
uint64_t ino_,
|
||||
fuse_file_info_t *ffi_)
|
||||
{
|
||||
f.ops.release(req_ctx_,
|
||||
ffi_);
|
||||
|
||||
mutex_lock(&f.lock);
|
||||
{
|
||||
node_t *node;
|
||||
|
||||
node = get_node(ino_);
|
||||
assert(node->open_count > 0);
|
||||
node->open_count--;
|
||||
}
|
||||
mutex_unlock(&f.lock);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
fuse_lib_create(fuse_req_t *req_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue