btrfs: return a btrfs_bio from btrfs_bio_alloc
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:44 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commitb41bbd293e64016b3bfad4e5f709fcc07f00b2c5
treead78e785167f044b855f3cf2b7fe4f8e9de5935d
parent9dfde1b47b9d7e090d9bf34f8a7ef4d89735f9e6
btrfs: return a btrfs_bio from btrfs_bio_alloc

Return the containing struct btrfs_bio instead of the less type safe
struct bio from btrfs_bio_alloc.

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
fs/btrfs/bio.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c