projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add regression test for recent offload locking bug
[fio.git]
/
os
/
os-mac.h
diff --git
a/os/os-mac.h
b/os/os-mac.h
index a1536c70fabaf9e2de907eab9ffec0740f2bb3db..92a60ee98766f0fc1526cd440e38a687e6cc02ae 100644
(file)
--- a/
os/os-mac.h
+++ b/
os/os-mac.h
@@
-41,9
+41,9
@@
typedef unsigned int clockid_t;
#endif
#define FIO_OS_DIRECTIO
-static inline int fio_set_odirect(
int fd
)
+static inline int fio_set_odirect(
struct fio_file *f
)
{
- if (fcntl(fd, F_NOCACHE, 1) == -1)
+ if (fcntl(f
->f
d, F_NOCACHE, 1) == -1)
return errno;
return 0;
}