Add strong madvise() hint for cache pruning
[fio.git] / os / os-solaris.h
index c49ce8d99abdd21f611c11ec5c90952314cd1c05..5029d38f356e5983992bb58ae04cfffa77773a5d 100644 (file)
@@ -23,9 +23,6 @@ struct solaris_rand_seed {
 typedef psetid_t os_cpu_mask_t;
 typedef struct solaris_rand_seed os_random_state_t;
 
-/*
- * FIXME
- */
 static inline int blockdev_size(int fd, unsigned long long *bytes)
 {
        off_t end = lseek(fd, 0, SEEK_END);
@@ -111,4 +108,8 @@ static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
  */
 #define FIO_MAX_CPUS                   16384
 
+#ifdef MADV_FREE
+#define FIO_MADV_FREE  MADV_FREE
+#endif
+
 #endif