diff --git a/fio.h b/fio.h index 4bb6cfa7f3..14163e2d2b 100644 --- a/fio.h +++ b/fio.h @@ -628,7 +628,7 @@ static inline bool multi_range_trim(struct thread_data *td, struct io_u *io_u) return false; } -static inline bool should_fsync(struct thread_data *td) +static inline bool should_fsync(const struct thread_data *td) { if (ddir_sync(td->last_ddir_issued)) return false;