X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=1637b74daf69ede187ad5c063ac95e1dcee31cd5;hp=e4e169311a80aa2eb4c43645f733fc8b281c169d;hb=697a606cc0af1c39ac18998c344a522199accb36;hpb=465221b0121f5cf70585d7338c6448ac4b251257 diff --git a/io_u.c b/io_u.c index e4e16931..1637b74d 100644 --- a/io_u.c +++ b/io_u.c @@ -7,6 +7,7 @@ #include "fio.h" #include "hash.h" +#include "lib/ffz.h" /* * Change this define to play with the timeout handling @@ -108,7 +109,7 @@ static int get_next_free_block(struct thread_data *td, struct fio_file *f, *b = (i * BLOCKS_PER_MAP); while ((*b) * min_bs < f->real_file_size) { if (f->file_map[i] != -1UL) { - *b += fio_ffz(f->file_map[i]); + *b += ffz(f->file_map[i]); if (*b > last_block(td, f, ddir)) break; f->last_free_lookup = i;