]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add member for a specific checksum driver
authorDavid Sterba <dsterba@suse.com>
Tue, 8 Oct 2019 16:41:33 +0000 (18:41 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:44 +0000 (17:51 +0100)
commita4e3f050d492da5fc9572d40fed0df5d39b2a8af
treed4b88246e91eac13a954d860800e0cfca3226b27
parent4c6d575a6e214234d2c3f9780487fe50e4475a1a
btrfs: add member for a specific checksum driver

Currently all the checksum algorithms generate a fixed size digest size
and we use it.  The on-disk format can hold up to BTRFS_CSUM_SIZE bytes
and BLAKE2b produces digest of 512 bits by default. We can't do that and
will use the blake2b-256, this needs to be passed to the crypto API.

Separate that from the base algorithm name and add a member to request
specific driver, in this case with the digest size.

The only place that uses the driver name is the crypto API setup.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/disk-io.c