projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76dd186
)
fio: should_fsync() returns bool
author
Jens Axboe
<axboe@kernel.dk>
Wed, 11 Jul 2018 19:26:19 +0000
(13:26 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 11 Jul 2018 19:26:19 +0000
(13:26 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
patch
|
blob
|
blame
|
history
diff --git
a/fio.h
b/fio.h
index 51b8fdc7cff7e51f12ed083b0338a3625c36380c..3ac552b29da8814baa509dce69fa00b7e879eee1 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-539,14
+539,14
@@
static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u)
#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)
- return
0
;
+ return
false
;
if (td_write(td) || td->o.override_sync)
- return
1
;
+ return
true
;
- return
0
;
+ return
false
;
}
/*