aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2019-05-20 07:29:42 +0000
committerJoerg Roedel <[email protected]>2019-05-27 15:31:11 +0000
commitee1ef05d02b03118e4c197e1193329f5b64246b7 (patch)
tree61e34e68b7e7ff52086b99d458a10b55680e3137 /lib/genalloc.c
parentiommu/dma: Cleanup variable naming in iommu_dma_alloc (diff)
downloadkernel-ee1ef05d02b03118e4c197e1193329f5b64246b7.tar.gz
kernel-ee1ef05d02b03118e4c197e1193329f5b64246b7.zip
iommu/dma: Refactor iommu_dma_alloc, part 2
All the logic in iommu_dma_alloc that deals with page allocation from the CMA or page allocators can be split into a self-contained helper, and we can than map the result of that or the atomic pool allocation with the iommu later. This also allows reusing __iommu_dma_free to tear down the allocations and MMU mappings when the IOMMU mapping fails. Based on a patch from Robin Murphy. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions