Skip to content

Commit d5a37b1

Browse files
Christoph HellwigMike Snitzer
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 29dec90 commit d5a37b1

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

block/bio.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,26 +1747,6 @@ int bioset_init(struct bio_set *bs,
17471747
}
17481748
EXPORT_SYMBOL(bioset_init);
17491749

1750-
/*
1751-
* Initialize and setup a new bio_set, based on the settings from
1752-
* another bio_set.
1753-
*/
1754-
int bioset_init_from_src(struct bio_set *bs, struct bio_set *src)
1755-
{
1756-
int flags;
1757-
1758-
flags = 0;
1759-
if (src->bvec_pool.min_nr)
1760-
flags |= BIOSET_NEED_BVECS;
1761-
if (src->rescue_workqueue)
1762-
flags |= BIOSET_NEED_RESCUER;
1763-
if (src->cache)
1764-
flags |= BIOSET_PERCPU_CACHE;
1765-
1766-
return bioset_init(bs, src->bio_pool.min_nr, src->front_pad, flags);
1767-
}
1768-
EXPORT_SYMBOL(bioset_init_from_src);
1769-
17701750
static int __init init_bio(void)
17711751
{
17721752
int i;

include/linux/bio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ enum {
403403
extern int bioset_init(struct bio_set *, unsigned int, unsigned int, int flags);
404404
extern void bioset_exit(struct bio_set *);
405405
extern int biovec_init_pool(mempool_t *pool, int pool_entries);
406-
extern int bioset_init_from_src(struct bio_set *bs, struct bio_set *src);
407406

408407
struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
409408
unsigned int opf, gfp_t gfp_mask,

0 commit comments

Comments
 (0)