static int get_next_rand_offset(struct thread_data *td, struct fio_file *f,
enum fio_ddir ddir, unsigned long long *b)
{
static int get_next_rand_offset(struct thread_data *td, struct fio_file *f,
enum fio_ddir ddir, unsigned long long *b)
{
if (!get_next_free_block(td, f, ddir, b))
goto ret;
if (!get_next_free_block(td, f, ddir, b))
goto ret;
if (!td->o.disable_bw)
add_bw_sample(td, idx, bytes, &icd->time);
if (!td->o.disable_bw)
add_bw_sample(td, idx, bytes, &icd->time);
account_io_completion(td, io_u, icd, idx, bytes);
if (__should_check_rate(td, idx)) {
account_io_completion(td, io_u, icd, idx, bytes);
if (__should_check_rate(td, idx)) {