]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dm: bio_list prefetch removal
authorAlasdair G Kergon <agk@redhat.com>
Thu, 12 Jul 2007 16:26:19 +0000 (17:26 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 12 Jul 2007 22:01:08 +0000 (15:01 -0700)
Remove dubious prefetch from bio_list_for_each() macro.

Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/dm-bio-list.h

index c6be88826fae4d7aaea55ea0f6f8da7bf3b747ee..16ee3b018b3aa83b80beda532ded23b609b731fb 100644 (file)
@@ -8,7 +8,6 @@
 #define DM_BIO_LIST_H
 
 #include <linux/bio.h>
-#include <linux/prefetch.h>
 
 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)
 {