io_u: don't use xfer_buflen before we have set it up
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index dd4502f1cfccb7c532480bd45fc13785578f9912..3b27d5ed7bbab2bdd0e6b49c0071d1709b4559dc 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1527,7 +1527,7 @@ struct io_u *get_io_u(struct thread_data *td)
                        if (td->flags & TD_F_REFILL_BUFFERS) {
                                io_u_fill_buffer(td, io_u,
                                        td->o.min_bs[DDIR_WRITE],
-                                       io_u->xfer_buflen);
+                                       io_u->buflen);
                        } else if ((td->flags & TD_F_SCRAMBLE_BUFFERS) &&
                                   !(td->flags & TD_F_COMPRESS))
                                do_scramble = 1;