diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-06 18:34:56 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-09-09 04:35:38 -0400 |
commit | 1e2a410ff71504a64d1af2e354287ac51aeac1b0 (patch) | |
tree | e4ae4669d958fc932e5ae67cafd8de860f1f91c9 /include/linux/bio.h | |
parent | 395c72a707d966b36d5a42fe12c3a237ded3a0d9 (diff) |
block: Ues bi_pool for bio_integrity_alloc()
Now that bios keep track of where they were allocated from,
bio_integrity_alloc_bioset() becomes redundant.
Remove bio_integrity_alloc_bioset() and drop bio_set argument from the
related functions and make them use bio->bi_pool.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 26435890dc87..a11f74bc82d2 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -505,9 +505,8 @@ static inline struct bio *bio_list_get(struct bio_list *bl) | |||
505 | 505 | ||
506 | #define bio_integrity(bio) (bio->bi_integrity != NULL) | 506 | #define bio_integrity(bio) (bio->bi_integrity != NULL) |
507 | 507 | ||
508 | extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *); | ||
509 | extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int); | 508 | extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int); |
510 | extern void bio_integrity_free(struct bio *, struct bio_set *); | 509 | extern void bio_integrity_free(struct bio *); |
511 | extern int bio_integrity_add_page(struct bio *, struct page *, unsigned int, unsigned int); | 510 | extern int bio_integrity_add_page(struct bio *, struct page *, unsigned int, unsigned int); |
512 | extern int bio_integrity_enabled(struct bio *bio); | 511 | extern int bio_integrity_enabled(struct bio *bio); |
513 | extern int bio_integrity_set_tag(struct bio *, void *, unsigned int); | 512 | extern int bio_integrity_set_tag(struct bio *, void *, unsigned int); |
@@ -517,7 +516,7 @@ extern void bio_integrity_endio(struct bio *, int); | |||
517 | extern void bio_integrity_advance(struct bio *, unsigned int); | 516 | extern void bio_integrity_advance(struct bio *, unsigned int); |
518 | extern void bio_integrity_trim(struct bio *, unsigned int, unsigned int); | 517 | extern void bio_integrity_trim(struct bio *, unsigned int, unsigned int); |
519 | extern void bio_integrity_split(struct bio *, struct bio_pair *, int); | 518 | extern void bio_integrity_split(struct bio *, struct bio_pair *, int); |
520 | extern int bio_integrity_clone(struct bio *, struct bio *, gfp_t, struct bio_set *); | 519 | extern int bio_integrity_clone(struct bio *, struct bio *, gfp_t); |
521 | extern int bioset_integrity_create(struct bio_set *, int); | 520 | extern int bioset_integrity_create(struct bio_set *, int); |
522 | extern void bioset_integrity_free(struct bio_set *); | 521 | extern void bioset_integrity_free(struct bio_set *); |
523 | extern void bio_integrity_init(void); | 522 | extern void bio_integrity_init(void); |
@@ -549,13 +548,13 @@ static inline int bio_integrity_prep(struct bio *bio) | |||
549 | return 0; | 548 | return 0; |
550 | } | 549 | } |
551 | 550 | ||
552 | static inline void bio_integrity_free(struct bio *bio, struct bio_set *bs) | 551 | static inline void bio_integrity_free(struct bio *bio) |
553 | { | 552 | { |
554 | return; | 553 | return; |
555 | } | 554 | } |
556 | 555 | ||
557 | static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src, | 556 | static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src, |
558 | gfp_t gfp_mask, struct bio_set *bs) | 557 | gfp_t gfp_mask) |
559 | { | 558 | { |
560 | return 0; | 559 | return 0; |
561 | } | 560 | } |