mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 11:56:31 -05:00
Auto-commit fuse.cpp
This commit is contained in:
parent
d5a2187713
commit
02da8efbff
37 changed files with 374 additions and 267 deletions
|
|
@ -27,6 +27,7 @@
|
|||
class DirInfo : public FH
|
||||
{
|
||||
public:
|
||||
static u64 to_fh(const DirInfo*);
|
||||
static DirInfo *from_fh(const u64 fh);
|
||||
|
||||
public:
|
||||
|
|
@ -39,23 +40,23 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
inline
|
||||
u64
|
||||
DirInfo::to_fh(const DirInfo *di_)
|
||||
{
|
||||
return reinterpret_cast<u64>(di_);
|
||||
}
|
||||
|
||||
inline
|
||||
u64
|
||||
DirInfo::to_fh() const
|
||||
{
|
||||
ASSERT_NOT_NULL(this);
|
||||
return reinterpret_cast<u64>(this);
|
||||
return to_fh(this);
|
||||
}
|
||||
|
||||
inline
|
||||
DirInfo*
|
||||
DirInfo::from_fh(const u64 fh_)
|
||||
{
|
||||
DirInfo *rv;
|
||||
|
||||
rv = reinterpret_cast<DirInfo*>(fh_);
|
||||
|
||||
ASSERT_NOT_NULL(rv);
|
||||
|
||||
return rv;
|
||||
return reinterpret_cast<DirInfo*>(fh_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue