#include "fio.h"
#include "hash.h"
-#include "lib/ffz.h"
/*
* Change this define to play with the timeout handling
dprint(FD_RANDOM, "free: b=%llu, idx=%u, bit=%u\n", block, idx, bit);
- return (f->file_map[idx] & (1UL << bit)) == 0;
+ return (f->file_map[idx] & (1 << bit)) == 0;
}
/*
fio_assert(td, idx < f->num_maps);
- f->file_map[idx] |= (1UL << bit);
+ f->file_map[idx] |= (1 << bit);
block++;
blocks++;
}
i = f->last_free_lookup;
*b = (i * BLOCKS_PER_MAP);
while ((*b) * min_bs < f->real_file_size) {
- if (f->file_map[i] != -1UL) {
+ if (f->file_map[i] != (unsigned int) -1) {
*b += ffz(f->file_map[i]);
if (*b > last_block(td, f, ddir))
break;