X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=smalloc.c;h=0c7c6df7bdd17992a5fa3c8acb6b53a769621009;hb=7fb28d3661a5833d8be24a014a04ee4548ec1c16;hp=a925a653e5d5571e9fff8686b7378efe3a343704;hpb=4b0c257cd785cf7af4a4722f41bd45174283f69d;p=fio.git diff --git a/smalloc.c b/smalloc.c index a925a653..0c7c6df7 100644 --- 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)