[PATCH] Fix Careless bio->_bio change in rq_for_each_bio().

Rusty Russell
2004-01-22T07:16:29Z

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

diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.6.2-rc1/include/linux/blkdev.h tmp/include/linux/blkdev.h
--- linux-2.6.2-rc1/include/linux/blkdev.h 2004-01-21 16:19:05.000000000 +1100
+++ tmp/include/linux/blkdev.h 2004-01-22 17:38:52.000000000 +1100
@@ -485,7 +485,7 @@ static inline void blk_queue_bounce(requ

#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;
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.