aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-05-22 10:19:01 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-01 13:35:00 +0200
commit1e25a2e3ca0dab0ed1030570e95d98af47113eae (patch)
treeff9d51c831b177b75d4abd939159a8341883edcb /tools/perf/scripts/python/exported-sql-viewer.py
parentbtrfs: use btrfs_crc32c{,_final}() in for free space cache (diff)
downloadlinux-dev-1e25a2e3ca0dab0ed1030570e95d98af47113eae.tar.xz
linux-dev-1e25a2e3ca0dab0ed1030570e95d98af47113eae.zip
btrfs: don't assume ordered sums to be 4 bytes
BTRFS has the implicit assumption that a checksum in btrfs_orderd_sums is 4 bytes. While this is true for CRC32C, it is not for any other checksum. Change the data type to be a byte array and adjust loop index calculation accordingly. This includes moving the adjustment of 'index' by 'ins_size' in btrfs_csum_file_blocks() before dividing 'ins_size' by the checksum size, because before this patch the 'sums' member of 'struct btrfs_ordered_sum' was 4 Bytes in size and afterwards it is only one byte. 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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions