diff options
author | 2019-05-22 10:18:58 +0200 | |
---|---|---|
committer | 2019-07-01 13:35:00 +0200 | |
commit | 5852c8b961542f997aa5aeee9c80e745e7af2d63 (patch) | |
tree | 576ffd36a61ef6973f74c07511a01252fabcbac8 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | btrfs: Flush before reflinking any extent to prevent NOCOW write falling back to COW without data reservation (diff) | |
download | linux-dev-5852c8b961542f997aa5aeee9c80e745e7af2d63.tar.xz linux-dev-5852c8b961542f997aa5aeee9c80e745e7af2d63.zip |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions