diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 0a44298fb353..8e67634e79a0 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -1444,8 +1444,7 @@ int bitmap_create(mddev_t *mddev) | |||
1444 | if (err) | 1444 | if (err) |
1445 | goto error; | 1445 | goto error; |
1446 | 1446 | ||
1447 | bitmap->chunkshift = find_first_bit(&bitmap->chunksize, | 1447 | bitmap->chunkshift = ffz(~bitmap->chunksize); |
1448 | sizeof(bitmap->chunksize)); | ||
1449 | 1448 | ||
1450 | /* now that chunksize and chunkshift are set, we can use these macros */ | 1449 | /* now that chunksize and chunkshift are set, we can use these macros */ |
1451 | chunks = (blocks + CHUNK_BLOCK_RATIO(bitmap) - 1) / | 1450 | chunks = (blocks + CHUNK_BLOCK_RATIO(bitmap) - 1) / |