]> Git Repo - linux.git/commit - block/bio.c
block: improve the gap check in __bio_add_pc_page
authorChristoph Hellwig <[email protected]>
Mon, 12 Aug 2019 15:39:56 +0000 (17:39 +0200)
committerJens Axboe <[email protected]>
Thu, 22 Aug 2019 13:14:36 +0000 (07:14 -0600)
commit320ea869a12cec206756207c6ca5f817ec45c7f2
treef47241df847ce8a065edf328cf94794e8f4694c0
parente9e006f5fcf2bab59149cb38a48a4817c1b538b4
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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/bio.c
This page took 0.043283 seconds and 4 git commands to generate.