projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92bf48d
)
Clean io_u->buf_filled_len in io_u_fill_buffer()
author
Jens Axboe
<jaxboe@fusionio.com>
Sun, 16 Jan 2011 15:32:08 +0000
(08:32 -0700)
committer
Jens Axboe
<jaxboe@fusionio.com>
Sun, 16 Jan 2011 15:35:56 +0000
(08:35 -0700)
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>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index 8cc348a835fed67a2310c04f84b4608281db1315..185bba03d9829052877b118f03257156c2eb2bc0 100644
(file)
--- 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