bcache: don't clone bio in bch_data_verify
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 07:52:30 +0000 (09:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Jul 2018 20:43:19 +0000 (14:43 -0600)
commitc8b27acc775990bbd01f067ee7616f7abf2c98a1
treeca0d3a624b67a3973f1fd724111a8208d76eb34b
parent3bb5098310317ca62304bd21af6ccea57d799b06
bcache: don't clone bio in bch_data_verify

We immediately overwrite the biovec array, so instead just allocate
a new bio and copy over the disk, setor and size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/debug.c