summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-16 08:32:08 -0700
committerJens Axboe <jaxboe@fusionio.com>2011-01-16 08:35:56 -0700
commite84b371e121ee224e02a90d01bf9074b759a409f (patch)
tree4b53de544ee42149be3b4527e7d754dd6d3e54b9
parent92bf48d530ab09bae4058df711c4723c73da51b9 (diff)
downloadfio-e84b371e121ee224e02a90d01bf9074b759a409f.tar.gz
fio-e84b371e121ee224e02a90d01bf9074b759a409f.tar.bz2
Clean io_u->buf_filled_len in io_u_fill_buffer()
Not a bug as such, but it could be if we used it in other locations in the future. So better be safe. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--io_u.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_u.c b/io_u.c
index 8cc348a8..185bba03 100644
--- a/io_u.c
+++ b/io_u.c
@@ -1374,6 +1374,8 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u)
void io_u_fill_buffer(struct thread_data *td, struct io_u *io_u,
unsigned int max_bs)
{
+ io_u->buf_filled_len = 0;
+
if (!td->o.zero_buffers)
fill_random_buf(io_u->buf, max_bs);
else