OSDN Git Service

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)
commit384209cd5b93a926321fafe880ed05b1bca97260
tree0fedcc88c21228a10ec49eb7304bd7b959c20015
parent320ea869a12cec206756207c6ca5f817ec45c7f2
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