]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: use shifts instead of sector_div
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Mar 2017 14:23:14 +0000 (10:23 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 24 Mar 2017 19:54:24 +0000 (15:54 -0400)
commit134105bb5a06bd87afabf407454557772a5e123a
treed47c07a67114bbf5cd275745f3591acea359fcee
parent1628467d37e3f758ded9fcbae15fc671ee85bedf
dm crypt: use shifts instead of sector_div

sector_div is very slow, so we introduce a variable sector_shift and
use shift instead of sector_div.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c