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

From: Rusty Russell
Date: Thu Jan 22 2004 - 02:18:30 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/