projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 1.22-rc1
[fio.git]
/
os
/
os-linux.h
diff --git
a/os/os-linux.h
b/os/os-linux.h
index a07db06b2a04c898af2d8320add4a56a8405e5df..c0f5327637bae11d572aacd315f5b018f2aa6ec3 100644
(file)
--- a/
os/os-linux.h
+++ b/
os/os-linux.h
@@
-29,7
+29,7
@@
#define FIO_HAVE_FALLOCATE
#define FIO_HAVE_POSIXAIO_FSYNC
#define FIO_HAVE_FALLOCATE
#define FIO_HAVE_POSIXAIO_FSYNC
-#define OS_MAP_ANON
(MAP_ANONYMOUS)
+#define OS_MAP_ANON
MAP_ANONYMOUS
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
@@
-116,7
+116,7
@@
struct async_head_user;
static inline struct syslet_uatom *
async_exec(struct syslet_uatom *atom, struct async_head_user *ahu)
{
static inline struct syslet_uatom *
async_exec(struct syslet_uatom *atom, struct async_head_user *ahu)
{
- return (
void
*) syscall(__NR_async_exec, atom, ahu);
+ return (
struct syslet_uatom
*) syscall(__NR_async_exec, atom, ahu);
}
static inline long
}
static inline long
@@
-230,6
+230,10
@@
static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
return 0;
}
return 0;
}
+#ifdef O_NOATIME
#define FIO_O_NOATIME O_NOATIME
#define FIO_O_NOATIME O_NOATIME
+#else
+#define FIO_O_NOATIME 0
+#endif
#endif
#endif