Skip to content
Snippets Groups Projects
Commit 5705f702 authored by NeilBrown's avatar NeilBrown Committed by Jens Axboe
Browse files

Introduce rq_for_each_segment replacing rq_for_each_bio


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: default avatarNeil Brown <neilb@suse.de>

Various compile fixes by me...

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 9dfa5283
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment