summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-02-20 13:50:53 +0200
committerDavid Sterba <dsterba@suse.com>2017-02-28 11:30:09 +0100
commit0970a22e58d4c49f2c3e84519613a9db8f00f579 (patch)
treef7f94345e8c87647269abee13ad6573ba01b1519 /fs/btrfs/compression.c
parent4ac1f4acd7c60c95e3efa63d463418093aff9ce5 (diff)
btrfs: make btrfs_print_data_csum_error take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 903c32c9eb22..9ce85d5e5cae 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -124,8 +124,9 @@ static int check_compressed_csum(struct inode *inode,
kunmap_atomic(kaddr);
if (csum != *cb_sum) {
- btrfs_print_data_csum_error(inode, disk_start, csum,
- *cb_sum, cb->mirror_num);
+ btrfs_print_data_csum_error(BTRFS_I(inode),
+ disk_start, csum,
+ *cb_sum, cb->mirror_num);
ret = -EIO;
goto fail;
}