projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation on centos 7
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 51b8fdc7cff7e51f12ed083b0338a3625c36380c..b58057f72009f9df12fa01879ef4f7df6732a1ef 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-399,6
+399,11
@@
struct thread_data {
* For IO replaying
*/
struct flist_head io_log_list;
* For IO replaying
*/
struct flist_head io_log_list;
+ FILE *io_log_rfile;
+ unsigned int io_log_current;
+ unsigned int io_log_checkmark;
+ unsigned int io_log_highmark;
+ struct timespec io_log_highmark_time;
/*
* For tracking/handling discards
/*
* For tracking/handling discards
@@
-539,14
+544,14
@@
static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u)
#define REAL_MAX_JOBS 4096
#define REAL_MAX_JOBS 4096
-static inline
int
should_fsync(struct thread_data *td)
+static inline
bool
should_fsync(struct thread_data *td)
{
if (td->last_was_sync)
{
if (td->last_was_sync)
- return
0
;
+ return
false
;
if (td_write(td) || td->o.override_sync)
if (td_write(td) || td->o.override_sync)
- return
1
;
+ return
true
;
- return
0
;
+ return
false
;
}
/*
}
/*
@@
-736,17
+741,17
@@
static inline bool should_check_rate(struct thread_data *td)
return ddir_rw_sum(td->bytes_done) != 0;
}
return ddir_rw_sum(td->bytes_done) != 0;
}
-static inline unsigned
int
td_max_bs(struct thread_data *td)
+static inline unsigned
long long
td_max_bs(struct thread_data *td)
{
{
- unsigned
int
max_bs;
+ unsigned
long long
max_bs;
max_bs = max(td->o.max_bs[DDIR_READ], td->o.max_bs[DDIR_WRITE]);
return max(td->o.max_bs[DDIR_TRIM], max_bs);
}
max_bs = max(td->o.max_bs[DDIR_READ], td->o.max_bs[DDIR_WRITE]);
return max(td->o.max_bs[DDIR_TRIM], max_bs);
}
-static inline unsigned
int
td_min_bs(struct thread_data *td)
+static inline unsigned
long long
td_min_bs(struct thread_data *td)
{
{
- unsigned
int
min_bs;
+ unsigned
long long
min_bs;
min_bs = min(td->o.min_bs[DDIR_READ], td->o.min_bs[DDIR_WRITE]);
return min(td->o.min_bs[DDIR_TRIM], min_bs);
min_bs = min(td->o.min_bs[DDIR_READ], td->o.min_bs[DDIR_WRITE]);
return min(td->o.min_bs[DDIR_TRIM], min_bs);