aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-03-07 16:39:39 +0000
committerDavid Sterba <[email protected]>2023-04-17 16:01:17 +0000
commitae42a154ca8972739be29f811a69bef6c4818a26 (patch)
tree52b0f2bfd27cbddf2bd64a7b92358662d700d921 /fs/btrfs/extent_io.c
parentbtrfs: move zero filling of compressed read bios into common code (diff)
downloadkernel-ae42a154ca8972739be29f811a69bef6c4818a26.tar.gz
kernel-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 <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 924fcb6c97e8..2e594252af01 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -157,7 +157,7 @@ static void submit_one_bio(struct btrfs_bio_ctrl *bio_ctrl)
bio_ctrl->compress_type != BTRFS_COMPRESS_NONE)
btrfs_submit_compressed_read(bio, mirror_num);
else
- btrfs_submit_bio(bio, mirror_num);
+ btrfs_submit_bio(btrfs_bio(bio), mirror_num);
/* The bio is owned by the end_io handler now */
bio_ctrl->bio = NULL;