Pass arch/os in probe
[fio.git] / smalloc.c
index a925a653e5d5571e9fff8686b7378efe3a343704..0c7c6df7bdd17992a5fa3c8acb6b53a769621009 100644 (file)
--- a/smalloc.c
+++ b/smalloc.c
@@ -171,8 +171,8 @@ static void clear_blocks(struct pool *pool, unsigned int pool_idx,
 static int find_next_zero(int word, int start)
 {
        assert(word != -1U);
-       word >>= (start + 1);
-       return ffz(word) + start + 1;
+       word >>= start;
+       return ffz(word) + start;
 }
 
 static int add_pool(struct pool *pool, unsigned int alloc_size)