]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03c3632042c9bcdf25ce317f0ce33bac7c1a2e7e
tree9a6ec4cac5f573083640537344a334b870ccd181
parent9c5e46aca2e55a6a09c178396eb1fc4b9e8804d4
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