btrfs: use btrfs_crc32c{,_final}() in for free space cache
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 22 May 2019 08:19:00 +0000 (10:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:35:00 +0000 (13:35 +0200)
commit4bb3c2e2b5bb0d57f7d11f2da829357c5ca628a4
treeb700d3608c611db7ba987e16e7a48bd111f06f6c
parent65019df8c3b0efa363c30ca4dd69a1a370a3ebe8
btrfs: use btrfs_crc32c{,_final}() in for free space cache

The CRC checksum in the free space cache is not dependant on the super
block's csum_type field but always a CRC32C.

So use btrfs_crc32c() and btrfs_crc32c_final() instead of
btrfs_csum_data() and btrfs_csum_final() for computing these checksums.

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/free-space-cache.c