remove FileInfo and keep only file descriptor

This commit is contained in:
Antonio SJ Musumeci 2015-03-05 22:15:54 -05:00
parent 15b2c8be1b
commit 91671d7364
15 changed files with 13 additions and 107 deletions

View file

@ -33,8 +33,6 @@
#include <errno.h>
#include <fcntl.h>
#include "fileinfo.hpp"
static
int
_fallocate(const int fd,
@ -75,9 +73,7 @@ namespace mergerfs
off_t len,
struct fuse_file_info *ffi)
{
const FileInfo *fileinfo = (FileInfo*)ffi->fh;
return _fallocate(fileinfo->fd,
return _fallocate(ffi->fh,
mode,
offset,
len);