]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix rq_for_each_bio() macro again
authorAndrew Morton <akpm@osdl.org>
Fri, 23 Jan 2004 00:04:53 +0000 (16:04 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 23 Jan 2004 00:04:53 +0000 (16:04 -0800)
From: Rusty Russell <rusty@rustcorp.com.au>

Looks like an obvious typo.  Works fine if "bio" is the name of the
iterator.

include/linux/blkdev.h

index 80b4c47842b8951608d2524abed42e0387c6d7ed..d0ba766eca75a15e84d5bcac1cbdf44c8aa02ae4 100644 (file)
@@ -485,7 +485,7 @@ static inline void blk_queue_bounce(request_queue_t *q, struct bio **bio)
 
 #define rq_for_each_bio(_bio, rq)      \
        if ((rq->bio))                  \
-               for (_bio = (rq)->bio; _bio; _bio = bio->bi_next)
+               for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
 
 struct sec_size {
        unsigned block_size;