mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework how fuse request context is handled (#1543)
This commit is contained in:
parent
d18c273293
commit
0371f03def
117 changed files with 1894 additions and 2438 deletions
|
|
@ -56,12 +56,13 @@ _read_cached(const int fd_,
|
|||
}
|
||||
|
||||
int
|
||||
FUSE::read(const fuse_file_info_t *ffi_,
|
||||
FUSE::read(const fuse_req_ctx_t *ctx_,
|
||||
const fuse_file_info_t *ffi_,
|
||||
char *buf_,
|
||||
size_t size_,
|
||||
off_t offset_)
|
||||
{
|
||||
ioprio::SetFrom iop(fuse_get_context()->pid);
|
||||
ioprio::SetFrom iop(ctx_->pid);
|
||||
FileInfo *fi = FileInfo::from_fh(ffi_->fh);
|
||||
|
||||
if(fi->direct_io)
|
||||
|
|
@ -71,7 +72,8 @@ FUSE::read(const fuse_file_info_t *ffi_,
|
|||
}
|
||||
|
||||
int
|
||||
FUSE::read_null(const fuse_file_info_t *ffi_,
|
||||
FUSE::read_null(const fuse_req_ctx_t *ctx_,
|
||||
const fuse_file_info_t *ffi_,
|
||||
char *buf_,
|
||||
size_t size_,
|
||||
off_t offset_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue