btrfs: factor out a btrfs_add_compressed_bio_pages helper
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Feb 2023 07:48:38 +0000 (08:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:14 +0000 (18:01 +0200)
commit10e924bc320a956a62db768ee6e5c49af8f0b670
tree63180ed9e5400c39d20e133bbd0be0064653c62b
parentd7294e4deeb9f3e7a41c759b3b0b2d28d80fbde2
btrfs: factor out a btrfs_add_compressed_bio_pages helper

Factor out a common helper to add the compressed_bio pages to the
bio that is shared by the compressed read and write path.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c