No point in checking for td_rw(td) || td_write(), since td_write()
will also be true for td_rw().
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
if (td->o.sync_io)
flags |= O_SYNC;
- if (td_write(td) || td_rw(td)) {
+ if (td_write(td)) {
flags |= O_RDWR;
if (f->filetype == FIO_TYPE_FILE)
INIT_LIST_HEAD(&io_u->list);
io_u->buf = p + max_bs * i;
- if (td_write(td) || td_rw(td))
+ if (td_write(td))
fill_rand_buf(io_u, max_bs);
io_u->index = i;
add_bw_sample(td, idx, &icd->time);
io_u_mark_latency(td, msec);
- if ((td_rw(td) || td_write(td)) && idx == DDIR_WRITE &&
+ if (td_write(td) && idx == DDIR_WRITE &&
td->o.verify != VERIFY_NONE)
log_io_piece(td, io_u);