dm: clean up clone_bio
authorAlasdair G Kergon <agk@redhat.com>
Fri, 1 Mar 2013 22:45:46 +0000 (22:45 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 1 Mar 2013 22:45:46 +0000 (22:45 +0000)
commitbd2a49b86d9aae0c505dcc99c0a073f9da2cc889
treecf11f71d96195abd2035695c5acf1fd2c0c789b1
parent88ae4c5294b319431c8c2ec86495b2de295adf62
dm: clean up clone_bio

Remove the no-longer-used struct bio_set argument from clone_bio and split_bvec.
Use tio->ti in __map_bio() instead of passing in ti.
Factor out some code for setting up cloned bios.
Take target_request_nr as a parameter to alloc_tio().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c