projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch last_was_sync and terminate to bool and pack better
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 6083eaa92eec4bfdfa485379367e92c458bb92cf..404c75b382ab5e187a23ea33134092e05b40f2a8 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-1994,7
+1994,7
@@
static void io_completed(struct thread_data *td, struct io_u **io_u_ptr,
}
if (ddir_sync(ddir)) {
}
if (ddir_sync(ddir)) {
- td->last_was_sync =
1
;
+ td->last_was_sync =
true
;
if (f) {
f->first_write = -1ULL;
f->last_write = -1ULL;
if (f) {
f->first_write = -1ULL;
f->last_write = -1ULL;
@@
-2004,7
+2004,7
@@
static void io_completed(struct thread_data *td, struct io_u **io_u_ptr,
return;
}
return;
}
- td->last_was_sync =
0
;
+ td->last_was_sync =
false
;
td->last_ddir = ddir;
if (!io_u->error && ddir_rw(ddir)) {
td->last_ddir = ddir;
if (!io_u->error && ddir_rw(ddir)) {