aoe: Convert to immutable biovecs
authorKent Overstreet <kmo@daterainc.com>
Tue, 13 Aug 2013 18:41:43 +0000 (11:41 -0700)
committerKent Overstreet <kmo@daterainc.com>
Sun, 24 Nov 2013 06:33:52 +0000 (22:33 -0800)
commitfeb261e2ee5d782c7e9c71fe1ef0828244a42cc1
tree21e05d2b6e5fa8dcd2a071b6329f2394e2abe233
parent003b5c5719f159f4f4bf97511c4702a0638313dd
aoe: Convert to immutable biovecs

Now that we've got a mechanism for immutable biovecs -
bi_iter.bi_bvec_done - we need to convert drivers to use primitives that
respect it instead of using the bvec array directly.

The aoe code no longer has to manually iterate over partial bvecs, so
some struct members go away - other struct members are effectively
renamed:

buf->resid -> buf->iter.bi_size
buf->sector -> buf->iter.bi_sector

f->bcnt -> f->iter.bi_size
f->lba -> f->iter.bi_sector

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Ed L. Cashin" <ecashin@coraid.com>
drivers/block/aoe/aoe.h
drivers/block/aoe/aoecmd.c