projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into gfio
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 82e2b62f62d8f16a48fc242790580de7a1b2dc46..2d752135cf030d2c6bd64f7cc04a66277fa86576 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-42,15
+42,11
@@
struct thread_data;
#include "stat.h"
#include "flow.h"
#include "stat.h"
#include "flow.h"
-#ifdef FIO_HAVE_GUASI
-#include <guasi.h>
-#endif
-
-#ifdef FIO_HAVE_SOLARISAIO
+#ifdef CONFIG_SOLARISAIO
#include <sys/asynch.h>
#endif
#include <sys/asynch.h>
#endif
-#ifdef
FIO_HAVE
_LIBNUMA
+#ifdef
CONFIG
_LIBNUMA
#include <linux/mempolicy.h>
#include <numa.h>
#include <linux/mempolicy.h>
#include <numa.h>
@@
-68,7
+64,6
@@
enum {
RW_SEQ_IDENT,
};
RW_SEQ_IDENT,
};
-
enum {
TD_F_VER_BACKLOG = 1,
TD_F_TRIM_BACKLOG = 2,
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 trim_list;
unsigned long trim_entries;
+ struct flist_head next_rand_list;
+
/*
* for fileservice, how often to switch to a new file
*/
/*
* 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) \
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)
} 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 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;
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->last_was_sync)
return 0;
- if (td->o.odirect)
- return 0;
if (td_write(td) || td_rw(td) || td->o.override_sync)
return 1;
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,
}
static inline int should_check_rate(struct thread_data *td,
- u
nsigned long
*bytes_done)
+ u
int64_t
*bytes_done)
{
int ret = 0;
{
int ret = 0;