]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:23 +0000 (19:39 +0200)
commit15d7102ee2d32181d9ed857c3454488c08ba1405
treea8dd31a4fc6835e00a40f3b10f1719df132af596
parent4d9bc628b61ee457195657c8e707dcbebcc5dbfe
btrfs: make btrfs_split_bio work on struct btrfs_bio

[ Upstream commit 2cef0c79bb81d8bae1dbc45195771a824ca45e76 ]

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>
Stable-dep-of: c731cd0b6d25 ("btrfs: fix file_offset for REQ_BTRFS_ONE_ORDERED bios that get split")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/bio.c