Add sparc and sparc64 support
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index e4e169311a80aa2eb4c43645f733fc8b281c169d..1637b74daf69ede187ad5c063ac95e1dcee31cd5 100644 (file)
--- 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;