OSDN Git Service

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)
commitd627065d88469933bc1527f97c539c464482f0bb
tree1181e2d38ccd8e9340645ce2205456e88be58a6f
parente9cd19c0c198aa1c893e142b015fde6da862ed52
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