From: Rusty Russell <rusty@rustcorp.com.au>
To: torvalds@osdl.org, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix Careless bio->_bio change in rq_for_each_bio().
Date: Thu, 22 Jan 2004 17:40:33 +1100 [thread overview]
Message-ID: <20040122071637.735A32C100@lists.samba.org> (raw)
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.
next reply other threads:[~2004-01-22 7:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-22 6:40 Rusty Russell [this message]
2004-01-22 10:30 ` [PATCH] Fix Careless bio->_bio change in rq_for_each_bio() Jens Axboe
2004-01-22 10:36 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040122071637.735A32C100@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox