X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=blobdiff_plain;f=drivers%2Fmd%2Fdm-exception-store.c;h=3997f34cfebc62114f33818dd18b1fe8bd08cbb6;hp=192bb8beeb6b59e296d9a2e06c0ef8c0a9be8aeb;hb=927055c8b5b79a051bcff8e6c968139358821d6e;hpb=bc9d8c20ffb47e64a41a4716a06d37cdf88fcc42 diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 192bb8beeb6b..3997f34cfebc 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -183,7 +183,7 @@ int dm_exception_store_set_chunk_size(struct dm_exception_store *store, store->chunk_size = chunk_size; store->chunk_mask = chunk_size - 1; - store->chunk_shift = ffs(chunk_size) - 1; + store->chunk_shift = __ffs(chunk_size); return 0; }