Re: [PATCH 22/26] iommu/dma: Refactor iommu_dma_mmap

2019-04-29 Thread Robin Murphy
On 22/04/2019 18:59, Christoph Hellwig wrote: Inline __iommu_dma_mmap_pfn into the main function, and use the fact that __iommu_dma_get_pages return NULL for remapped contigous allocations to simplify the code flow a bit. ...and later we can squash __iommu_dma_mmap() once the dust settles on

[PATCH 22/26] iommu/dma: Refactor iommu_dma_mmap

2019-04-22 Thread Christoph Hellwig
Inline __iommu_dma_mmap_pfn into the main function, and use the fact that __iommu_dma_get_pages return NULL for remapped contigous allocations to simplify the code flow a bit. Signed-off-by: Christoph Hellwig --- drivers/iommu/dma-iommu.c | 36 +++- 1 file