]> 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)
commitd183e28238c13109ad10dd0e6e75a906e3579985
tree1181e2d38ccd8e9340645ce2205456e88be58a6f
parente7c9004e592f056790cde4ed1adfbab29c91205f
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