diff options
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 9340098d75dc..4b80d3537f97 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -334,7 +334,7 @@ struct bio_pair { | |||
334 | extern struct bio_pair *bio_split(struct bio *bi, int first_sectors); | 334 | extern struct bio_pair *bio_split(struct bio *bi, int first_sectors); |
335 | extern void bio_pair_release(struct bio_pair *dbio); | 335 | extern void bio_pair_release(struct bio_pair *dbio); |
336 | 336 | ||
337 | extern struct bio_set *bioset_create(int, int); | 337 | extern struct bio_set *bioset_create(unsigned int, unsigned int); |
338 | extern void bioset_free(struct bio_set *); | 338 | extern void bioset_free(struct bio_set *); |
339 | 339 | ||
340 | extern struct bio *bio_alloc(gfp_t, int); | 340 | extern struct bio *bio_alloc(gfp_t, int); |
@@ -379,6 +379,7 @@ extern struct bio *bio_copy_user_iov(struct request_queue *, | |||
379 | extern int bio_uncopy_user(struct bio *); | 379 | extern int bio_uncopy_user(struct bio *); |
380 | void zero_fill_bio(struct bio *bio); | 380 | void zero_fill_bio(struct bio *bio); |
381 | extern struct bio_vec *bvec_alloc_bs(gfp_t, int, unsigned long *, struct bio_set *); | 381 | extern struct bio_vec *bvec_alloc_bs(gfp_t, int, unsigned long *, struct bio_set *); |
382 | extern void bvec_free_bs(struct bio_set *, struct bio_vec *, unsigned int); | ||
382 | extern unsigned int bvec_nr_vecs(unsigned short idx); | 383 | extern unsigned int bvec_nr_vecs(unsigned short idx); |
383 | 384 | ||
384 | /* | 385 | /* |
@@ -401,6 +402,8 @@ static inline void bio_set_completion_cpu(struct bio *bio, unsigned int cpu) | |||
401 | 402 | ||
402 | struct bio_set { | 403 | struct bio_set { |
403 | struct kmem_cache *bio_slab; | 404 | struct kmem_cache *bio_slab; |
405 | unsigned int front_pad; | ||
406 | |||
404 | mempool_t *bio_pool; | 407 | mempool_t *bio_pool; |
405 | #if defined(CONFIG_BLK_DEV_INTEGRITY) | 408 | #if defined(CONFIG_BLK_DEV_INTEGRITY) |
406 | mempool_t *bio_integrity_pool; | 409 | mempool_t *bio_integrity_pool; |
@@ -415,6 +418,7 @@ struct biovec_slab { | |||
415 | }; | 418 | }; |
416 | 419 | ||
417 | extern struct bio_set *fs_bio_set; | 420 | extern struct bio_set *fs_bio_set; |
421 | extern struct biovec_slab bvec_slabs[BIOVEC_NR_POOLS] __read_mostly; | ||
418 | 422 | ||
419 | /* | 423 | /* |
420 | * a small number of entries is fine, not going to be performance critical. | 424 | * a small number of entries is fine, not going to be performance critical. |