fio: should_fsync() returns bool
[fio.git] / fio.h
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;
 }
 
 /*