X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=126a9a8bb3acd207993f2f047569a6c3222b89a2;hp=e218a30f6f24da6a2cfc6134717c3d04ad6305c1;hb=54c00a8e27c0b6842fa73016d74087a9fabc925d;hpb=1621031e8a7cbb91afad124da405fc4eabda764f diff --git a/io_u.c b/io_u.c index e218a30f..126a9a8b 100644 --- a/io_u.c +++ b/io_u.c @@ -661,7 +661,8 @@ static void io_u_mark_latency(struct thread_data *td, unsigned long usec) /* * Get next file to service by choosing one at random */ -static struct fio_file *get_next_file_rand(struct thread_data *td, enum fio_file_flags goodf, +static struct fio_file *get_next_file_rand(struct thread_data *td, + enum fio_file_flags goodf, enum fio_file_flags badf) { struct fio_file *f; @@ -1085,7 +1086,7 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u) unsigned long slat_time; slat_time = utime_since(&io_u->start_time, &io_u->issue_time); - add_slat_sample(td, io_u->ddir, io_u->xfer_buflen, slat_time); + add_slat_sample(td, io_u->ddir, slat_time, io_u->xfer_buflen); } }