X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=smalloc.c;h=0c7c6df7bdd17992a5fa3c8acb6b53a769621009;hp=a925a653e5d5571e9fff8686b7378efe3a343704;hb=271067a6e278dafd62649257fe99ce536acfe7bb;hpb=eb52fa3f9b91181dd87335998b94864ab9c14d6c;ds=sidebyside 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)