block: add a helper function to merge the segments
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 28 Aug 2019 12:35:42 +0000 (21:35 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 3 Sep 2019 06:32:50 +0000 (08:32 +0200)
commit45147fb522bb459e79bdcb7504ee7ec8cfd4c12c
tree5b02f6cc1daaaf79add184033aa31d399e8909ca
parentdb91427b6502e8e46db4b616e4eaa9b9cf4e6363
block: add a helper function to merge the segments

This patch adds a helper function whether a queue can merge
the segments by the DMA MAP layer (e.g. via IOMMU).

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-settings.c
include/linux/blkdev.h