aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2022-10-27 02:41:32 +0200
committerGravatar David Sterba <dsterba@suse.com> 2022-12-05 18:00:52 +0100
commitd8f9268ece91e6fe887b444780787828890a8051 (patch)
treed76fe7298ceb0eb5c88310f42aba6336083c0175 /fs/btrfs/compression.c
parentbtrfs: pass btrfs_inode to submit_one_bio (diff)
downloadlinux-d8f9268ece91e6fe887b444780787828890a8051.tar.gz
linux-d8f9268ece91e6fe887b444780787828890a8051.tar.bz2
linux-d8f9268ece91e6fe887b444780787828890a8051.zip
btrfs: pass btrfs_inode to btrfs_repair_one_sector
The function is for internal interfaces so we should use the btrfs_inode. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index cf3dc7e501ec..6f5ad0d6c409 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -194,7 +194,7 @@ static void end_compressed_bio_read(struct btrfs_bio *bbio)
int ret;
refcount_inc(&cb->pending_ios);
- ret = btrfs_repair_one_sector(inode, bbio, offset,
+ ret = btrfs_repair_one_sector(BTRFS_I(inode), bbio, offset,
bv.bv_page, bv.bv_offset,
true);
if (ret) {