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