diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
| commit | c4de673b775e4db48cd2db6277e0c6714332ca0c (patch) | |
| tree | 84f9e4728e6ccf257236d2ba063b6e784ec8b65d /include/linux/bio.h | |
| parent | bafdc614a1f4f8be8cde41b8ab10ac17e67c1837 (diff) | |
| parent | 55957fb7a0b61d8ab6ff3f04e279b8fc22b738fa (diff) | |
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
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 | ||
