From: Jens Axboe Date: Wed, 11 Jul 2018 19:26:19 +0000 (-0600) Subject: fio: should_fsync() returns bool X-Git-Tag: fio-3.8~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a3eb1a1eaf1479474dcb12625a1b134978d0060d;p=fio.git fio: should_fsync() returns bool Signed-off-by: Jens Axboe --- 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; } /*