OSDN Git Service

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)
commit4c360acee9298d048921bec3e21c4183d06cb43a
treec1133d965fa8c652ed26162eac6b9ca33d727b76
parent796a08cf16054ef93783ca8ab4aec2469c3307c1
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