mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
block: Add bioset_init()/bioset_exit()
Similarly to mempool_init()/mempool_exit(), take a pointer indirection out of allocation/freeing by allowing biosets to be embedded in other structs. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
8aa6ba2f6e
commit
917a38c71a
2 changed files with 67 additions and 28 deletions
|
@ -406,6 +406,8 @@ static inline struct bio *bio_next_split(struct bio *bio, int sectors,
|
|||
return bio_split(bio, sectors, gfp, bs);
|
||||
}
|
||||
|
||||
extern int bioset_init(struct bio_set *, unsigned int, unsigned int, int flags);
|
||||
extern void bioset_exit(struct bio_set *);
|
||||
extern struct bio_set *bioset_create(unsigned int, unsigned int, int flags);
|
||||
enum {
|
||||
BIOSET_NEED_BVECS = BIT(0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue