btrfs: pass a btrfs_bio to btrfs_submit_compressed_read
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:40 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commit690834e47cf7868a4c13e32ea2332d9fe6590073
tree144cdac26b79d0d143b159ce8d9a791fd0d08d6e
parentae42a154ca8972739be29f811a69bef6c4818a26
btrfs: pass a btrfs_bio to btrfs_submit_compressed_read

btrfs_submit_compressed_read 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>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/extent_io.c