summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-06-08 08:34:07 +0200
committerMike Snitzer <snitzer@kernel.org>2022-06-08 20:04:14 +0200
commitd5a37b19983725d2045588cfa3a4699f5b39ae26 (patch)
tree1fe7a7f0c3b79701e6ca3943db3771320a466ada /block/bio.c
parentdm: fix bio_set allocation (diff)
downloadlinux-d5a37b19983725d2045588cfa3a4699f5b39ae26.tar.xz
linux-d5a37b19983725d2045588cfa3a4699f5b39ae26.zip
block: remove bioset_init_from_src
Unused now, and the interface never really made a whole lot of sense to start with. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/block/bio.c b/block/bio.c
index f92d0223247b..51c99f2c5c90 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1747,26 +1747,6 @@ bad:
}
EXPORT_SYMBOL(bioset_init);
-/*
- * Initialize and setup a new bio_set, based on the settings from
- * another bio_set.
- */
-int bioset_init_from_src(struct bio_set *bs, struct bio_set *src)
-{
- int flags;
-
- flags = 0;
- if (src->bvec_pool.min_nr)
- flags |= BIOSET_NEED_BVECS;
- if (src->rescue_workqueue)
- flags |= BIOSET_NEED_RESCUER;
- if (src->cache)
- flags |= BIOSET_PERCPU_CACHE;
-
- return bioset_init(bs, src->bio_pool.min_nr, src->front_pad, flags);
-}
-EXPORT_SYMBOL(bioset_init_from_src);
-
static int __init init_bio(void)
{
int i;