block: export bio_split_rw
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Jan 2023 06:49:58 +0000 (07:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:50 +0000 (19:38 +0100)
commitfd8f8ede239bc0531aca65f408ecf44d6755c558
tree9d4b69224df1342f9509c7634341f00e98805541
parentc9a43aaf0971660e388b794feb0db4649746390a
block: export bio_split_rw

bio_split_rw can be used by file systems to split and incoming write
bio into multiple bios fitting the hardware limit for use as ZONE_APPEND
bios.  Export it for initial use in btrfs.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.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>
block/blk-merge.c
include/linux/bio.h