summaryrefslogtreecommitdiff
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
commitb762041629e73d8e24a10aae4bf256774fbbd082 (patch)
tree6d36289aa11f7cee4b322139eb72ffa241f25e4b /fs/btrfs/extent_io.c
parent535a7e5d6b7e04da0336c632c834a575e82b5082 (diff)
downloadlwn-b762041629e73d8e24a10aae4bf256774fbbd082.tar.gz
lwn-b762041629e73d8e24a10aae4bf256774fbbd082.zip
btrfs: pass btrfs_inode to btrfs_submit_data_read_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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 13fba51be32d..ac69e5f1605c 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -138,7 +138,7 @@ static void submit_one_bio(struct btrfs_bio_ctrl *bio_ctrl)
else if (btrfs_op(bio) == BTRFS_MAP_WRITE)
btrfs_submit_data_write_bio(BTRFS_I(inode), bio, mirror_num);
else
- btrfs_submit_data_read_bio(inode, bio, mirror_num,
+ btrfs_submit_data_read_bio(BTRFS_I(inode), bio, mirror_num,
bio_ctrl->compress_type);
/* The bio is owned by the end_io handler now */
@@ -861,7 +861,8 @@ int btrfs_repair_one_sector(struct inode *inode, struct btrfs_bio *failed_bbio,
* error here.
*/
if (submit_buffered)
- btrfs_submit_data_read_bio(inode, repair_bio, failrec->this_mirror, 0);
+ 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);