* be laid out with the block scattered as written. it's faster to
* read them in in that order again, so don't sort
*/
- if (td->sequential || !td->overwrite) {
+ if (!td_random(td) || !td->overwrite) {
list_add_tail(&ipo->list, &td->io_hist_list);
return;
}
if (!reads && !writes)
return 1;
else if (reads && !writes)
- td->ddir = DDIR_READ;
+ td->td_ddir = TD_DDIR_READ;
else if (!reads && writes)
- td->ddir = DDIR_READ;
+ td->td_ddir = TD_DDIR_READ;
else
- td->iomix = 1;
+ td->td_ddir = TD_DDIR_RW;
return 0;
}