block: Don't save/copy bvec array anymore, share when cloning
authorKent Overstreet <kmo@daterainc.com>
Fri, 9 Aug 2013 01:35:36 +0000 (18:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Oct 2013 14:04:50 +0000 (08:04 -0600)
commit9fc6286f347d00528adcdcf12396d220f47492ed
tree5d97106f475e28727a0aebeb727f76f02f681259
parent44931ee84c6362ec8d9b97b02432760035a2b639
block: Don't save/copy bvec array anymore, share when cloning

Now that drivers have been converted to the bvec_iter primitives, they
shouldn't be modifying the biovec anymore and thus saving it is
unnecessary - code that was previously making a backup of the bvec array
can now just save bio->bi_iter.

Also, when cloning bios we can usually just reuse the original bio's
bvec array. For code that does need to modify the clone's biovec (the
bounce buffer code, mainly), add bio_clone_biovec().

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c
drivers/md/bcache/request.h
drivers/md/dm-bio-record.h
drivers/md/dm.c
fs/bio-integrity.c
fs/bio.c
include/linux/bio.h
mm/bounce.c