btrfs: move the bi_sector assignment out of btrfs_add_compressed_bio_pages
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Mar 2023 16:51:09 +0000 (17:51 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:18 +0000 (18:01 +0200)
commit4513cb0c40d79599f72a5d1a6ab2fb279b63500d
treef5c9fde2649c2b3156bf6cd4b5d6c9ace4b9f36e
parentd1cc579383191fe6c3f1eeac45eb50b8976d38de
btrfs: move the bi_sector assignment out of btrfs_add_compressed_bio_pages

Adding pages to a bio has nothing to do with the sector.  Move the
assignment to the two callers in preparation for cleaning up
btrfs_add_compressed_bio_pages.

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