diff options
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index ec48bac5b039..060ff695085c 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -218,6 +218,7 @@ struct bio_pair { | |||
218 | }; | 218 | }; |
219 | extern struct bio_pair *bio_split(struct bio *bi, int first_sectors); | 219 | extern struct bio_pair *bio_split(struct bio *bi, int first_sectors); |
220 | extern void bio_pair_release(struct bio_pair *dbio); | 220 | extern void bio_pair_release(struct bio_pair *dbio); |
221 | extern void bio_trim(struct bio *bio, int offset, int size); | ||
221 | 222 | ||
222 | extern struct bio_set *bioset_create(unsigned int, unsigned int); | 223 | extern struct bio_set *bioset_create(unsigned int, unsigned int); |
223 | extern void bioset_free(struct bio_set *); | 224 | extern void bioset_free(struct bio_set *); |
@@ -419,6 +420,8 @@ static inline void bio_list_init(struct bio_list *bl) | |||
419 | bl->head = bl->tail = NULL; | 420 | bl->head = bl->tail = NULL; |
420 | } | 421 | } |
421 | 422 | ||
423 | #define BIO_EMPTY_LIST { NULL, NULL } | ||
424 | |||
422 | #define bio_list_for_each(bio, bl) \ | 425 | #define bio_list_for_each(bio, bl) \ |
423 | for (bio = (bl)->head; bio; bio = bio->bi_next) | 426 | for (bio = (bl)->head; bio; bio = bio->bi_next) |
424 | 427 | ||