mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
remove FileInfo and keep only file descriptor
This commit is contained in:
parent
15b2c8be1b
commit
91671d7364
15 changed files with 13 additions and 107 deletions
|
|
@ -34,8 +34,6 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "fileinfo.hpp"
|
||||
|
||||
static
|
||||
int
|
||||
_fsync(const int fd,
|
||||
|
|
@ -59,9 +57,7 @@ namespace mergerfs
|
|||
int isdatasync,
|
||||
struct fuse_file_info *ffi)
|
||||
{
|
||||
const FileInfo *fileinfo = (FileInfo*)ffi->fh;
|
||||
|
||||
return _fsync(fileinfo->fd,
|
||||
return _fsync(ffi->fh,
|
||||
isdatasync);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue