X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmd%2Fdm-crypt.c;h=4c2471ee054aa099a8777de111e7b219fe6c6eb9;hb=ac6d141dc7d1d0eeec850d1b451dca83ce649684;hp=a1086ee8cccde1828860a24ee8667100e88dd701;hpb=7f3af60e5a444b287d740a84998a8f480645dadf;p=linux-2.6 diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index a1086ee8cc..4c2471ee05 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, const char *opts) { unsigned int bs = crypto_blkcipher_blocksize(cc->tfm); - int log = long_log2(bs); + int log = ilog2(bs); /* we need to calculate how far we must shift the sector count * to get the cipher block count, we use this shift in _gen */ @@ -962,7 +962,7 @@ static int crypt_map(struct dm_target *ti, struct bio *bio, atomic_set(&io->pending, 0); kcryptd_queue_io(io); - return 0; + return DM_MAPIO_SUBMITTED; } static int crypt_status(struct dm_target *ti, status_type_t type,