]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/md/dm-cache-policy-cleaner.c
Merge remote-tracking branch 'device-mapper/for-next'
[karo-tx-linux.git] / drivers / md / dm-cache-policy-cleaner.c
index 8a096456579bead67b182f27e65956341a7c8d73..14aaaf059f06a6a8197a8d3eb875abaf671b6305 100644 (file)
@@ -83,7 +83,7 @@ static struct list_head *list_pop(struct list_head *q)
 static int alloc_hash(struct hash *hash, unsigned elts)
 {
        hash->nr_buckets = next_power(elts >> 4, 16);
-       hash->hash_bits = ffs(hash->nr_buckets) - 1;
+       hash->hash_bits = __ffs(hash->nr_buckets);
        hash->table = vzalloc(sizeof(*hash->table) * hash->nr_buckets);
 
        return hash->table ? 0 : -ENOMEM;