]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ca8f476eea44caad1231b59693da87f00d81eb7
tree868cb694ca3028669910449e92b11426e54b97f9
parent9c4778b11cae3ad1856f4251756e385b2a850911
btrfs: resurrect btrfs_crc32c()

Commit d928d5064981 ("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