diff options
| author | 2023-03-07 17:39:39 +0100 | |
|---|---|---|
| committer | 2023-04-17 18:01:17 +0200 | |
| commit | ae42a154ca8972739be29f811a69bef6c4818a26 (patch) | |
| tree | 52b0f2bfd27cbddf2bd64a7b92358662d700d921 /fs/btrfs/extent_io.c | |
| parent | btrfs: move zero filling of compressed read bios into common code (diff) | |
| download | wireguard-linux-ae42a154ca8972739be29f811a69bef6c4818a26.tar.xz wireguard-linux-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/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 2 |
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; |
