-static void save_buf_state(struct thread_data *td, struct frand_state *rs)
+static void save_buf_state(struct thread_data *td, struct frand_state *rs,
+ struct frand_state *save)
{
if (rs == &td->buf_state)
frand_copy(&td->buf_state_prev, rs);
{
if (rs == &td->buf_state)
frand_copy(&td->buf_state_prev, rs);
}
void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write,
unsigned int max_bs)
{
struct thread_options *o = &td->o;
}
void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write,
unsigned int max_bs)
{
struct thread_options *o = &td->o;
} while (left);
} else if (o->buffer_pattern_bytes)
fill_buffer_pattern(td, buf, max_bs);
else if (o->zero_buffers)
memset(buf, 0, max_bs);
else
} while (left);
} else if (o->buffer_pattern_bytes)
fill_buffer_pattern(td, buf, max_bs);
else if (o->zero_buffers)
memset(buf, 0, max_bs);
else
- fill_random_buf(get_buf_state(td), buf, max_bs);
+ fill_random_buf(get_buf_state(td, NULL), buf, max_bs);