Skip to content

Commit

Permalink
fio: should_fsync() returns bool
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Jul 11, 2018
1 parent 76dd186 commit a3eb1a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fio.h
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit a3eb1a1

Please sign in to comment.