13 static inline unsigned long generic_ffz(unsigned long word)
17 for (i = 0; i < sizeof(word) * 8; i++)
18 if ((word & (1UL << i)) == 0)
26 #elif defined(__x86_64__)
27 #include "arch-x86_64.h"
28 #elif defined(__powerpc__) || defined(__powerpc64__)
30 #elif defined(__ia64__)
31 #include "arch-ia64.h"
32 #elif defined(__alpha__)
33 #include "arch-alpha.h"
34 #elif defined(__s390x__) || defined(__s390__)
35 #include "arch-s390.h"
37 #error "Unsupported arch"
40 #define BITS_PER_LONG (__WORDSIZE)
43 #define BLKGETSIZE64 _IOR(0x12,114,size_t)
46 static inline int ioprio_set(int which, int who, int ioprio)
48 return syscall(__NR_ioprio_set, which, who, ioprio);
52 * we want fadvise64 really, but it's so tangled... later
54 static inline int fadvise(int fd, loff_t offset, size_t len, int advice)
57 return syscall(__NR_fadvise64, fd, offset, offset >> 32, len, advice);
59 return posix_fadvise(fd, (off_t) offset, len, advice);
64 IOPRIO_WHO_PROCESS = 1,
69 #define IOPRIO_CLASS_SHIFT 13