From a3eb1a1eaf1479474dcb12625a1b134978d0060d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 11 Jul 2018 13:26:19 -0600 Subject: [PATCH] fio: should_fsync() returns bool Signed-off-by: Jens Axboe --- fio.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fio.h b/fio.h index 51b8fdc7..3ac552b2 100644 --- 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; } /* -- 2.25.1