X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-linux.h;h=0f0bcc3a745bd7bfa91b24a9aca4ce80914ffe45;hb=f4cd67d8dc96ca947b294f6a5c9fdced2b64215d;hp=ba58bf7d962380413f15441d259eea8573f3c26e;hpb=46bfd4e5170ec950c1eb2e27c2ae67fa9b84ee12;p=fio.git diff --git a/os/os-linux.h b/os/os-linux.h index ba58bf7d..0f0bcc3a 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -124,10 +124,12 @@ static inline int ioprio_set(int which, int who, int ioprio_class, int ioprio) return syscall(__NR_ioprio_set, which, who, ioprio); } +#ifndef CONFIG_HAVE_GETTID static inline int gettid(void) { return syscall(__NR_gettid); } +#endif #define SPLICE_DEF_SIZE (64*1024) @@ -324,6 +326,10 @@ static inline int fio_set_sched_idle(void) #define RWF_SYNC 0x00000004 #endif +#ifndef RWF_UNCACHED +#define RWF_UNCACHED 0x00000040 +#endif + #ifndef RWF_WRITE_LIFE_SHIFT #define RWF_WRITE_LIFE_SHIFT 4 #define RWF_WRITE_LIFE_SHORT (1 << RWF_WRITE_LIFE_SHIFT)