summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/bio.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-03-07 17:39:39 +0100
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:17 +0200
commitae42a154ca8972739be29f811a69bef6c4818a26 (patch)
tree52b0f2bfd27cbddf2bd64a7b92358662d700d921 /fs/btrfs/bio.h
parent7edb9a3e72009917602f80f1c01f2337a103e7e0 (diff)
downloadlinux-stable-ae42a154ca8972739be29f811a69bef6c4818a26.tar.gz
linux-stable-ae42a154ca8972739be29f811a69bef6c4818a26.tar.bz2
linux-stable-ae42a154ca8972739be29f811a69bef6c4818a26.zip
btrfs: pass a btrfs_bio to btrfs_submit_bio
btrfs_submit_bio expects the bio passed to it to be embedded into a btrfs_bio structure. Pass the btrfs_bio directly to increase type safety and make the code self-documenting. Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.h')
-rw-r--r--fs/btrfs/bio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/bio.h b/fs/btrfs/bio.h
index 873ff85817f0..b4e7d5ab7d23 100644
--- a/fs/btrfs/bio.h
+++ b/fs/btrfs/bio.h
@@ -88,7 +88,7 @@ static inline void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status)
/* Bio only refers to one ordered extent. */
#define REQ_BTRFS_ONE_ORDERED REQ_DRV
-void btrfs_submit_bio(struct bio *bio, int mirror_num);
+void btrfs_submit_bio(struct btrfs_bio *bbio, int mirror_num);
int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
u64 length, u64 logical, struct page *page,
unsigned int pg_offset, int mirror_num);