block: clean up __bio_add_pc_page a bit
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 07:04:35 +0000 (09:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:26:44 +0000 (09:26 -0600)
commitdcdca753c152efe8d86ec7a15423307807a516a7
tree9a6ec4cac5f573083640537344a334b870ccd181
parent6601e44efd20efddc183c85131216200e90c5728
block: clean up __bio_add_pc_page a bit

Share the bi_size update by moving the done label up, and duplicate
the bv_len update in the two callers to get rid of the bvec_merge
label.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c