]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dm integrity: various small changes and cleanups
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Apr 2017 20:51:50 +0000 (16:51 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 24 Apr 2017 16:04:32 +0000 (12:04 -0400)
commit56b67a4f292f14548f4046979d46d07bcf8ba971
tree2b7648bdcbc66160eafe5b93d6445a90afef4998
parente2460f2a4bc740fae9e23f14d653cf53e90b3f9a
dm integrity: various small changes and cleanups

Some coding style changes.

Fix a bug that the array test_tag has insufficient size if the digest
size of internal has is bigger than the tag size.

The function __fls is undefined for zero argument, this patch fixes
undefined behavior if the user sets zero interleave_sectors.

Fix the limit of optional arguments to 8.

Don't allocate crypt_data on the stack to avoid a BUG with debug kernel.

Rename all optional argument names to have underscores rather than
dashes.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-integrity.txt
drivers/md/dm-integrity.c