]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm-crypt: switch to using the crc32 library
authorEric Biggers <ebiggers@google.com>
Mon, 27 Jan 2025 22:15:33 +0000 (14:15 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 3 Feb 2025 13:10:10 +0000 (14:10 +0100)
commitf656fa4013388a52d1fdd82268955c5e7be63ad2
tree7c7bef0635ed072ba8acec347f74478dd39eb321
parent2014c95afecee3e76ca4a56956a936e23283f05b
dm-crypt: switch to using the crc32 library

Now that the crc32() library function takes advantage of
architecture-specific optimizations, it is unnecessary to go through the
crypto API.  Just use crc32().  This is much simpler, and it improves
performance due to eliminating the crypto API overhead.  (However, this
only affects the TCW IV mode of dm-crypt, which is a compatibility mode
that is rarely used compared to other dm-crypt modes.)

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/Kconfig
drivers/md/dm-crypt.c