]> git.baikalelectronics.ru Git - kernel.git/commit
block: improve the gap check in __bio_add_pc_page
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2019 15:39:56 +0000 (17:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Aug 2019 13:14:36 +0000 (07:14 -0600)
commitcd30872ed9bd9e90efee53ca0dea1f1a10bda00e
treef47241df847ce8a065edf328cf94794e8f4694c0
parentb7360f952aafdc954099ee9dd2f417475d284d54
block: improve the gap check in __bio_add_pc_page

If we can add more data into an existing segment we do not create a gap
per definition, so move the check for a gap after the attempt to merge
into the segment.

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