X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=helpers.h;h=4ec0f0525612cdcc1435d242870bba35af140ecf;hb=2d8c2709dc067aabdeab8bc1eea1992d9d802375;hp=5f1865bba8129f272edc4afbce9d2e281bc41949;hpb=67bf982340d95ca98098ea050b54b4c7adb116c0;p=fio.git diff --git a/helpers.h b/helpers.h index 5f1865bb..4ec0f052 100644 --- a/helpers.h +++ b/helpers.h @@ -1,15 +1,16 @@ #ifndef FIO_HELPERS_H #define FIO_HELPERS_H -#include "compiler/compiler.h" - #include -#include + +#include "os/os.h" extern int fallocate(int fd, int mode, off_t offset, off_t len); extern int posix_fallocate(int fd, off_t offset, off_t len); -extern int sync_file_range(int fd, off64_t offset, off64_t nbytes, +#ifndef CONFIG_SYNC_FILE_RANGE +extern int sync_file_range(int fd, uint64_t offset, uint64_t nbytes, unsigned int flags); +#endif extern int posix_fadvise(int fd, off_t offset, off_t len, int advice); #endif /* FIO_HELPERS_H_ */