block: Convert drivers 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.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: NeilBrown <neilb@suse.de>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
This commit is contained in:
Kent Overstreet 2013-10-11 15:45:43 -07:00
parent 458b76ed2f
commit 003b5c5719
7 changed files with 88 additions and 118 deletions

View file

@ -29,7 +29,7 @@ typedef void (*io_notify_fn)(unsigned long error, void *context);
enum dm_io_mem_type {
DM_IO_PAGE_LIST,/* Page list */
DM_IO_BVEC, /* Bio vector */
DM_IO_BIO, /* Bio vector */
DM_IO_VMA, /* Virtual memory area */
DM_IO_KMEM, /* Kernel memory */
};
@ -41,7 +41,7 @@ struct dm_io_memory {
union {
struct page_list *pl;
struct bio_vec *bvec;
struct bio *bio;
void *vma;
void *addr;
} ptr;