btrfs: make btrfs_split_bio work on struct btrfs_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:45 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:18 +0000 (18:01 +0200)
commit2cef0c79bb81d8bae1dbc45195771a824ca45e76
tree4c3782514eada92293da400a458deefd892d57a0
parentb41bbd293e64016b3bfad4e5f709fcc07f00b2c5
btrfs: make btrfs_split_bio work on struct btrfs_bio

btrfs_split_bio expects a btrfs_bio as argument and always allocates one.
Type both the orig_bio argument and the return value as struct btrfs_bio
to improve type safety.

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/bio.c