Skip to content

Commit bdb3d50

Browse files
committed
io_u: make should_fsync() take a const
Make should_fsync() safer by using a pointer to a constant thread_data structure instance. Signed-off-by: Roman Sofin [email protected]
1 parent 55b10cc commit bdb3d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static inline bool multi_range_trim(struct thread_data *td, struct io_u *io_u)
628628
return false;
629629
}
630630

631-
static inline bool should_fsync(struct thread_data *td)
631+
static inline bool should_fsync(const struct thread_data *td)
632632
{
633633
if (ddir_sync(td->last_ddir_issued))
634634
return false;

0 commit comments

Comments
 (0)