Introduce rq_for_each_segment replacing rq_for_each_bio
authorNeilBrown <neilb@suse.de>
Tue, 25 Sep 2007 10:35:59 +0000 (12:35 +0200)
committerJens Axboe <axboe@carl.home.kernel.dk>
Wed, 10 Oct 2007 07:25:56 +0000 (09:25 +0200)
Every usage of rq_for_each_bio wraps a usage of
bio_for_each_segment, so these can be combined into
rq_for_each_segment.

We define "struct req_iterator" to hold the 'bio' and 'index' that
are needed for the double iteration.

Signed-off-by: Neil Brown <neilb@suse.de>
Various compile fixes by me...

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found