btrfs: use the bbio file offset in add_ra_bio_pages
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Feb 2023 07:48:37 +0000 (08:48 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:14 +0000 (18:01 +0200)
commitd7294e4deeb9f3e7a41c759b3b0b2d28d80fbde2
treeea52809b9012a865a2b94ccaa94bc8e3293716f5
parente7aff33e31610729f0c9c487f0e262cf96e98ebb
btrfs: use the bbio file offset in add_ra_bio_pages

struct btrfs_bio now has a file_offset field set up by all submitters.
Use that value combined with the bio size in add_ra_bio_pages to
calculate the last offset in the bio.

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