btrfs: remove search_file_offset_in_bio
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Feb 2023 17:07:01 +0000 (09:07 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:16 +0000 (18:01 +0200)
commit65886d2b1fd42cd9e8b0540782078591e8752012
treec7297375aa791b712fcba7b368e63c5641ad72e4
parent198bd49e5f0cdd21ded084235232da2507f17da0
btrfs: remove search_file_offset_in_bio

There is no need to search for a file offset in a bio, it is now always
provided in bbio->file_offset (set at bio allocation time since
0d495430db8d ("btrfs: set bbio->file_offset in alloc_new_bio")).  Just
use that with the offset into the bio.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
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/file-item.c