From 2b8ac12b3a8e5bb6e42f78344915f22d5307a2ce Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Thu, 2 Apr 2009 19:55:36 +0100 Subject: [PATCH] --- yaml --- r: 140176 b: refs/heads/master c: 99c75e3130cff0c869c657ee97fb4a68958eeffc h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/md/dm-bio-list.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ff80d2597084..c5d98bb28973 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a32079ce17899192a7b98a42753be467605a8b2f +refs/heads/master: 99c75e3130cff0c869c657ee97fb4a68958eeffc diff --git a/trunk/drivers/md/dm-bio-list.h b/trunk/drivers/md/dm-bio-list.h index d4509be0fe67..345098b4ca77 100644 --- a/trunk/drivers/md/dm-bio-list.h +++ b/trunk/drivers/md/dm-bio-list.h @@ -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)