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)
commit5705f7021748a69d84d6567e68e8851dab551464
tree5a6dbc8fc6055c0334f4a97540e36a7844b9c482
parent9dfa52831e96194b8649613e3131baa2c109f7dc
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: Neil Brown <neilb@suse.de>
Various compile fixes by me...

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
14 files changed:
Documentation/block/biodoc.txt
block/ll_rw_blk.c
drivers/block/floppy.c
drivers/block/lguest_blk.c
drivers/block/nbd.c
drivers/block/ps3disk.c
drivers/block/xen-blkfront.c
drivers/ide/ide-floppy.c
drivers/s390/block/dasd_diag.c
drivers/s390/block/dasd_eckd.c
drivers/s390/block/dasd_fba.c
drivers/s390/char/tape_34xx.c
drivers/s390/char/tape_3590.c
include/linux/blkdev.h