iommu/dma: Refactor the page array remapping allocator
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:34 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:11 +0000 (17:31 +0200)
commit21b95aaf5f2212764d37b7569f3829a295e4042c
tree90d1afb49a994ee80d5e8077b494215d03fbf194
parent4c360acee9298d048921bec3e21c4183d06cb43a
iommu/dma: Refactor the page array remapping allocator

Move the call to dma_common_pages_remap into __iommu_dma_alloc and
rename it to iommu_dma_alloc_remap.  This creates a self-contained
helper for remapped pages allocation and mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c