]> git.baikalelectronics.ru Git - kernel.git/commit
block: create a bio_try_merge_pc_page helper
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2019 15:39:57 +0000 (17:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Aug 2019 13:14:38 +0000 (07:14 -0600)
commita303ecaea93f10f29b7c4c316ddfe582f87307e2
tree0fedcc88c21228a10ec49eb7304bd7b959c20015
parentcd02386d5030d5fadeec0dc4579f48d30495a372
block: create a bio_try_merge_pc_page helper

Passsthrough bio handling should be the same as normal bio handling,
except that we need to take hardware limitations into account.  Thus
use the common try_merge implementation after checking the hardware
limits.  This changes behavior in that we now also check segment
and dma boundary settings for same page merges, which is a little
more work but has no effect as those need to be larger than the
page size.

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