iommu/dma: Move domain lookup into __iommu_dma_{map,unmap}
authorRobin Murphy <robin.murphy@arm.com>
Mon, 20 May 2019 07:29:31 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:11 +0000 (17:31 +0200)
commitb61d271e59d7fd679ad9922ce5f16c116c0f8e94
treea07aa7e7439370f97b3f258f3b951ef778534e75
parent92aec09cc87975f66d3a84001876693d9ac6073b
iommu/dma: Move domain lookup into __iommu_dma_{map,unmap}

Most of the callers don't care, and the couple that do already have the
domain to hand for other reasons are in slow paths where the (trivial)
overhead of a repeated lookup will be utterly immaterial.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[hch: dropped the hunk touching iommu_dma_get_msi_page to avoid a
 conflict with another series]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c