dm: Refactor for new bio cloning/splitting
authorKent Overstreet <kmo@daterainc.com>
Wed, 30 Oct 2013 00:17:49 +0000 (17:17 -0700)
committerKent Overstreet <kmo@daterainc.com>
Sun, 24 Nov 2013 06:33:55 +0000 (22:33 -0800)
commit1c3b13e64cf70d652fb04e32d13ae3e36810c2e4
treeca3d3fd7d0c6d99fa2bc041ed51bac4aaa9a242a
parent5341a6278bc5d10dbbb2ab6031b41d95c8db7a35
dm: Refactor for new bio cloning/splitting

We need to convert the dm code to the new bvec_iter primitives which
respect bi_bvec_done; they also allow us to drastically simplify dm's
bio splitting code.

Also, it's no longer necessary to save/restore the bvec array anymore -
driver conversions for immutable bvecs are done, so drivers should never
be modifying it.

Also kill bio_sector_offset(), dm was the only user and it doesn't make
much sense anymore.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bio-record.h
drivers/md/dm.c
fs/bio.c
include/linux/bio.h