summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-27 02:41:32 +0200
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:52 +0100
commitd781c1c315ce649002a9fd0387edc3ee93271743 (patch)
treec859cf32653446f4adb7af5cce37755f6004fce9 /fs/btrfs/extent_io.c
parentbtrfs: pass btrfs_inode to btrfs_submit_data_read_bio (diff)
downloadlinux-d781c1c315ce649002a9fd0387edc3ee93271743.tar.xz
linux-d781c1c315ce649002a9fd0387edc3ee93271743.zip
btrfs: pass btrfs_inode to btrfs_submit_dio_repair_bio
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/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index ac69e5f1605c..bddda397e438 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -864,7 +864,8 @@ int btrfs_repair_one_sector(struct inode *inode, struct btrfs_bio *failed_bbio,
btrfs_submit_data_read_bio(BTRFS_I(inode), repair_bio,
failrec->this_mirror, 0);
else
- btrfs_submit_dio_repair_bio(inode, repair_bio, failrec->this_mirror);
+ btrfs_submit_dio_repair_bio(BTRFS_I(inode), repair_bio,
+ failrec->this_mirror);
return BLK_STS_OK;
}