diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2019-05-22 10:18:58 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 13:35:00 +0200 |
commit | 5852c8b961542f997aa5aeee9c80e745e7af2d63 (patch) | |
tree | 576ffd36a61ef6973f74c07511a01252fabcbac8 /crypto/arc4.c | |
parent | a94d1d0cb3bf1983fcdf05b59d914dbff4f1f52c (diff) |
btrfs: use btrfs_csum_data() instead of directly calling crc32c
btrfsic_test_for_metadata() directly calls the crc32c() library function
for calculating the CRC32C checksum, but then uses btrfs_csum_final() to
invert the result.
To ease further refactoring and development around checksumming in BTRFS
convert to calling btrfs_csum_data(), which is a wrapper around
crc32c().
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions