X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os-linux.h;h=d3b2e931e8b754eaecfd06af87748225d5e168b9;hb=d3aad8f28b9e214fccfce5e3a406dec723f57a62;hp=eb60034cc7d4fad59816925c382b090bdf50a918;hpb=145dad6d3e1ae4bf44dd49eea9d0c025500b97d0;p=fio.git diff --git a/os-linux.h b/os-linux.h index eb60034c..d3b2e931 100644 --- a/os-linux.h +++ b/os-linux.h @@ -20,13 +20,6 @@ #define FIO_HAVE_ODIRECT #define FIO_HAVE_HUGETLB -/* - * Only for x86 currently - */ -#if defined(__i386__) -#define FIO_HAVE_SYSLET -#endif - #define OS_MAP_ANON (MAP_ANONYMOUS) typedef cpu_set_t os_cpu_mask_t; @@ -91,7 +84,7 @@ struct async_head_user; static inline struct syslet_uatom * async_exec(struct syslet_uatom *atom, struct async_head_user *ahu) { - return syscall(__NR_async_exec, atom, ahu); + return (void *) syscall(__NR_async_exec, atom, ahu); } static inline long @@ -102,9 +95,9 @@ async_wait(unsigned long min_wait_events, unsigned long user_ring_idx, user_ring_idx, ahu); } -static inline long async_thread(void) +static inline long async_thread(void *event, struct async_head_user *ahu) { - return syscall(__NR_async_thread); + return syscall(__NR_async_thread, event, ahu); } static inline long umem_add(unsigned long *uptr, unsigned long inc) @@ -131,10 +124,7 @@ enum { static inline int blockdev_invalidate_cache(int fd) { - if (!ioctl(fd, BLKFLSBUF)) - return 0; - - return errno; + return ioctl(fd, BLKFLSBUF); } static inline int blockdev_size(int fd, unsigned long long *bytes)