dma-mapping: introduce a dma_common_find_pages helper
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Jun 2019 07:14:31 +0000 (09:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:20 +0000 (11:13 +0200)
commit5cf4537975bbd5691b9ddd015d540bb92f61e322
treef77c8831902447d5c079eb8d36d4819d426d6e06
parent512317401f6a337e617ec284d20dec5fa3a951ec
dma-mapping: introduce a dma_common_find_pages helper

A helper to find the backing page array based on a virtual address.
This also ensures we do the same vm_flags check everywhere instead
of slightly different or missing ones in a few places.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/arm/mm/dma-mapping.c
drivers/iommu/dma-iommu.c
include/linux/dma-mapping.h
kernel/dma/remap.c