summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-06-03 16:58:58 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-01 13:35:02 +0200
commitea41d6b2785f6aaeefffaaab62c3c4164b5628ce (patch)
tree4dd68d8a651a178a5bf915289a5b2a9a189e4c82 /fs/btrfs/compression.c
parentd5178578bcd461cc79118c7a139882350fe505aa (diff)
btrfs: remove assumption about csum type form btrfs_print_data_csum_error()
btrfs_print_data_csum_error() still assumed checksums to be 32 bit in size. Make it size agnostic. 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 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 935c0c564c02..66e21a4e9ea2 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -84,8 +84,7 @@ static int check_compressed_csum(struct btrfs_inode *inode,
if (memcmp(&csum, cb_sum, csum_size)) {
btrfs_print_data_csum_error(inode, disk_start,
- *(u32 *)csum, *(u32 *)cb_sum,
- cb->mirror_num);
+ csum, cb_sum, cb->mirror_num);
ret = -EIO;
goto fail;
}