Make smalloc use anonymous memory mmaps
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 4b6fb9fdd209f61147b964ca46046b431d74a9fc..16866ddff95737805abc5610be8e471bc805ca39 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -248,7 +248,7 @@ struct thread_options {
        unsigned int file_service_type;
        unsigned int group_reporting;
        unsigned int fadvise_hint;
-       unsigned int fallocate;
+       enum fio_fallocate_mode fallocate_mode;
        unsigned int zero_buffers;
        unsigned int refill_buffers;
        unsigned int time_based;
@@ -666,7 +666,7 @@ extern int load_blktrace(struct thread_data *, const char *);
        if (!(cond)) {                  \
                int *__foo = NULL;      \
                fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond);   \
-               (td)->runstate = TD_EXITED;     \
+               td_set_runstate((td), TD_EXITED);       \
                (td)->error = EFAULT;           \
                *__foo = 0;                     \
        }       \