]> git.baikalelectronics.ru Git - kernel.git/commit
block: untangle the end of blk_bio_segment_split
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:29:03 +0000 (12:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:29:22 +0000 (10:29 -0600)
commit51f5bd10ed4ea8e9dea9396b2e91ee4b9e999425
tree1181e2d38ccd8e9340645ce2205456e88be58a6f
parentceba84b4c448c97aec185082e068bf3a5eb80857
block: untangle the end of blk_bio_segment_split

Now that we don't need to assign the front/back segment sizes, we can
duplicating the segs assignment for the split vs no-split case and
remove a whole chunk of boilerplate code.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c