]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/dma: Factor out remapped pages lookup
authorRobin Murphy <robin.murphy@arm.com>
Mon, 20 May 2019 07:29:33 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:11 +0000 (17:31 +0200)
commit2e3a40558a55d1579af22f73769a70540a2ace0f
treec1133d965fa8c652ed26162eac6b9ca33d727b76
parentaed4b8a1f8dddbedbc3f3801e2d2f59175a6cfe9
iommu/dma: Factor out remapped pages lookup

Since we duplicate the find_vm_area() logic a few times in places where
we only care aboute the pages, factor out a helper to abstract it.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[hch: don't warn when not finding a region, as we'll rely on that later]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c