diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index a1086ee8cccd..96152868525b 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c | |||
@@ -220,7 +220,7 @@ static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, | |||
220 | const char *opts) | 220 | const char *opts) |
221 | { | 221 | { |
222 | unsigned int bs = crypto_blkcipher_blocksize(cc->tfm); | 222 | unsigned int bs = crypto_blkcipher_blocksize(cc->tfm); |
223 | int log = long_log2(bs); | 223 | int log = ilog2(bs); |
224 | 224 | ||
225 | /* we need to calculate how far we must shift the sector count | 225 | /* we need to calculate how far we must shift the sector count |
226 | * to get the cipher block count, we use this shift in _gen */ | 226 | * to get the cipher block count, we use this shift in _gen */ |