dm: convert ffs to __ffs
[deliverable/linux.git] / drivers / md / dm-cache-policy-mq.c
index aa1b41ca40f778dcb4e6c0e393ab4ee33d25d388..ddb26980cd669ec81bf00aa1370e71bd6e30e107 100644 (file)
@@ -1410,7 +1410,7 @@ static struct dm_cache_policy *mq_create(dm_cblock_t cache_size,
        mq->generation_period = max((unsigned) from_cblock(cache_size), 1024U);
 
        mq->nr_buckets = next_power(from_cblock(cache_size) / 2, 16);
-       mq->hash_bits = ffs(mq->nr_buckets) - 1;
+       mq->hash_bits = __ffs(mq->nr_buckets);
        mq->table = vzalloc(sizeof(*mq->table) * mq->nr_buckets);
        if (!mq->table)
                goto bad_alloc_table;
This page took 0.023987 seconds and 5 git commands to generate.