From: Kent Overstreet Date: Wed, 30 Oct 2013 00:17:49 +0000 (-0700) Subject: dm: Refactor for new bio cloning/splitting X-Git-Tag: v3.14-rc1~43^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3b13e64cf70d652fb04e32d13ae3e36810c2e4;p=pandora-kernel.git 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 Cc: Jens Axboe Cc: Alasdair Kergon Cc: dm-devel@redhat.com Reviewed-by: Mike Snitzer --- Reading git-diff-tree failed