btrfs: resurrect btrfs_crc32c()
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 22 May 2019 08:18:59 +0000 (10:18 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:35:00 +0000 (13:35 +0200)
commit65019df8c3b0efa363c30ca4dd69a1a370a3ebe8
tree868cb694ca3028669910449e92b11426e54b97f9
parent5852c8b961542f997aa5aeee9c80e745e7af2d63
btrfs: resurrect btrfs_crc32c()

Commit 9678c54388b6 ("btrfs: Remove custom crc32c init code") removed
the btrfs_crc32c() function, because it was a duplicate of the crc32c()
library function we already have in the kernel.

Resurrect it as a shim wrapper over crc32c() to make following
transformations of the checksumming code in btrfs easier.

Also provide a btrfs_crc32_final() to ease following transformations.

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>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/send.c