summaryrefslogtreecommitdiff
path: root/os/os-freebsd.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-08-04 23:17:02 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-08-04 23:17:02 +0200
commita1c58075279454a91ec43366846b93e8dcf9753c (patch)
treeb0377d096ad9ab0da2d252b04af44ad982794ee1 /os/os-freebsd.h
parent56075b96f307f8276f9d032ac8404622b94a456c (diff)
downloadfio-a1c58075279454a91ec43366846b93e8dcf9753c.tar.gz
fio-a1c58075279454a91ec43366846b93e8dcf9753c.tar.bz2
Add strong madvise() hint for cache pruning
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os-freebsd.h')
-rw-r--r--os/os-freebsd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/os-freebsd.h b/os/os-freebsd.h
index 88de7138..26bb8a09 100644
--- a/os/os-freebsd.h
+++ b/os/os-freebsd.h
@@ -51,4 +51,8 @@ static inline long os_random_long(os_random_state_t *rs)
return val;
}
+#ifdef MADV_FREE
+#define FIO_MADV_FREE MADV_FREE
+#endif
+
#endif