/*
* If using a write iolog, store this entry.
*/
- if (td->write_iolog)
+ if (td->write_iolog_file)
write_iolog_put(td, io_u);
io_u->file = f;
if (!queue_full(td)) {
io_u = list_entry(td->io_u_freelist.next, struct io_u, list);
+ io_u->buflen = 0;
io_u->error = 0;
io_u->resid = 0;
list_del(&io_u->list);