Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140176
b: refs/heads/master
c: 99c75e3
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Apr 2, 2009
1 parent 1602fcd commit 2b8ac12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a32079ce17899192a7b98a42753be467605a8b2f
refs/heads/master: 99c75e3130cff0c869c657ee97fb4a68958eeffc
10 changes: 10 additions & 0 deletions trunk/drivers/md/dm-bio-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ static inline void bio_list_add(struct bio_list *bl, struct bio *bio)
bl->tail = bio;
}

static inline void bio_list_add_head(struct bio_list *bl, struct bio *bio)
{
bio->bi_next = bl->head;

bl->head = bio;

if (!bl->tail)
bl->tail = bio;
}

static inline void bio_list_merge(struct bio_list *bl, struct bio_list *bl2)
{
if (!bl2->head)
Expand Down

0 comments on commit 2b8ac12

Please sign in to comment.