commit | 320ea869a12cec206756207c6ca5f817ec45c7f2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Aug 12 17:39:56 2019 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Aug 22 07:14:36 2019 -0600 |
tree | f47241df847ce8a065edf328cf94794e8f4694c0 | |
parent | e9e006f5fcf2bab59149cb38a48a4817c1b538b4 [diff] |
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>