X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=2d752135cf030d2c6bd64f7cc04a66277fa86576;hb=29df29eaf88958c8741103d2056a4773d4959d9d;hp=82e2b62f62d8f16a48fc242790580de7a1b2dc46;hpb=2a988d8bcb447eb098fc382835cc507587c6ba66;p=fio.git diff --git a/fio.h b/fio.h index 82e2b62f..2d752135 100644 --- a/fio.h +++ b/fio.h @@ -42,15 +42,11 @@ struct thread_data; #include "stat.h" #include "flow.h" -#ifdef FIO_HAVE_GUASI -#include -#endif - -#ifdef FIO_HAVE_SOLARISAIO +#ifdef CONFIG_SOLARISAIO #include #endif -#ifdef FIO_HAVE_LIBNUMA +#ifdef CONFIG_LIBNUMA #include #include @@ -68,7 +64,6 @@ enum { RW_SEQ_IDENT, }; - enum { TD_F_VER_BACKLOG = 1, TD_F_TRIM_BACKLOG = 2, @@ -278,6 +273,8 @@ struct thread_data { struct flist_head trim_list; unsigned long trim_entries; + struct flist_head next_rand_list; + /* * for fileservice, how often to switch to a new file */ @@ -328,7 +325,7 @@ enum { int e = (err); \ (td)->error = e; \ if (!(td)->first_error) \ - snprintf(td->verror, sizeof(td->verror) - 1, "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \ + snprintf(td->verror, sizeof(td->verror), "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \ } while (0) @@ -364,7 +361,6 @@ extern int is_backend; extern int nr_clients; extern int log_syslog; extern const char fio_version_string[]; -extern const fio_fp64_t def_percentile_list[FIO_IO_U_LIST_MAX_LEN]; extern struct thread_data *threads; @@ -414,8 +410,6 @@ static inline int should_fsync(struct thread_data *td) { if (td->last_was_sync) return 0; - if (td->o.odirect) - return 0; if (td_write(td) || td_rw(td) || td->o.override_sync) return 1; @@ -558,7 +552,7 @@ static inline int __should_check_rate(struct thread_data *td, } static inline int should_check_rate(struct thread_data *td, - unsigned long *bytes_done) + uint64_t *bytes_done) { int ret = 0;