mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Simplify lowlevel fuse state management and req mem
This commit is contained in:
parent
5a2a9e4530
commit
e55bb93890
14 changed files with 376 additions and 307 deletions
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
static
|
||||
void
|
||||
_want(fuse_conn_info *conn_,
|
||||
_want(fuse_conn_info_t *conn_,
|
||||
const int flag_)
|
||||
{
|
||||
conn_->want |= flag_;
|
||||
|
|
@ -43,7 +43,7 @@ _want(fuse_conn_info *conn_,
|
|||
|
||||
static
|
||||
bool
|
||||
_capable(fuse_conn_info *conn_,
|
||||
_capable(fuse_conn_info_t *conn_,
|
||||
const int flag_)
|
||||
{
|
||||
return !!(conn_->capable & flag_);
|
||||
|
|
@ -51,7 +51,7 @@ _capable(fuse_conn_info *conn_,
|
|||
|
||||
static
|
||||
void
|
||||
_want_if_capable(fuse_conn_info *conn_,
|
||||
_want_if_capable(fuse_conn_info_t *conn_,
|
||||
const int flag_)
|
||||
{
|
||||
if(::_capable(conn_,flag_))
|
||||
|
|
@ -60,7 +60,7 @@ _want_if_capable(fuse_conn_info *conn_,
|
|||
|
||||
static
|
||||
void
|
||||
_want_if_capable(fuse_conn_info *conn_,
|
||||
_want_if_capable(fuse_conn_info_t *conn_,
|
||||
const int flag_,
|
||||
ConfigBOOL *want_)
|
||||
{
|
||||
|
|
@ -78,7 +78,7 @@ static const char MAX_PAGES_LIMIT_FILEPATH[] = "/proc/sys/fs/fuse/max_pages_limi
|
|||
|
||||
static
|
||||
void
|
||||
_want_if_capable_max_pages(fuse_conn_info *conn_,
|
||||
_want_if_capable_max_pages(fuse_conn_info_t *conn_,
|
||||
Config &cfg_)
|
||||
{
|
||||
std::fstream f;
|
||||
|
|
@ -184,7 +184,7 @@ _spawn_thread_to_set_readahead()
|
|||
}
|
||||
|
||||
void *
|
||||
FUSE::init(fuse_conn_info *conn_)
|
||||
FUSE::init(fuse_conn_info_t *conn_)
|
||||
{
|
||||
procfs::init();
|
||||
cfg.readdir.initialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue