From: Alasdair G Kergon Date: Thu, 12 Jul 2007 16:26:19 +0000 (+0100) Subject: dm: bio_list prefetch removal X-Git-Tag: v2.6.23-rc1~1100 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e15ae424afa0a40b1a0c4478046d6ba0b71e20;p=linux-2.6 dm: bio_list prefetch removal Remove dubious prefetch from bio_list_for_each() macro. Cc: Jens Axboe Signed-off-by: Alasdair G Kergon Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-bio-list.h b/drivers/md/dm-bio-list.h index c6be88826f..16ee3b018b 100644 --- a/drivers/md/dm-bio-list.h +++ b/drivers/md/dm-bio-list.h @@ -8,7 +8,6 @@ #define DM_BIO_LIST_H #include -#include struct bio_list { struct bio *head; @@ -31,8 +30,7 @@ static inline void bio_list_init(struct bio_list *bl) } #define bio_list_for_each(bio, bl) \ - for (bio = (bl)->head; bio && ({ prefetch(bio->bi_next); 1; }); \ - bio = bio->bi_next) + for (bio = (bl)->head; bio; bio = bio->bi_next) static inline unsigned bio_list_size(const struct bio_list *bl) {