]> www.infradead.org Git - users/hch/block.git/commitdiff
block: remove bioset_init_from_src
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Jun 2022 08:13:42 +0000 (10:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 3 Jun 2022 12:32:34 +0000 (14:32 +0200)
Unused now, and the interface never really made a whole lot of sense to
start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio.c
include/linux/bio.h

index be3937b84e68a8469d3f0672747d392c3869f29e..f3cce7f267a98b68c6d939cc84b8577187d0ebad 100644 (file)
@@ -1745,26 +1745,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;
index 1cf3738ef1ea6d794271bc619a3072c1474ce46a..992ee987f2738568122d433bcc2e0b4b413a2ceb 100644 (file)
@@ -403,7 +403,6 @@ enum {
 extern int bioset_init(struct bio_set *, unsigned int, unsigned int, int flags);
 extern void bioset_exit(struct bio_set *);
 extern int biovec_init_pool(mempool_t *pool, int pool_entries);
-extern int bioset_init_from_src(struct bio_set *bs, struct bio_set *src);
 
 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
                             unsigned int opf, gfp_t gfp_mask,