]> asedeno.scripts.mit.edu Git - linux.git/commit
swiotlb-xen: use the same foreign page check everywhere
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Aug 2019 09:23:44 +0000 (11:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 11 Sep 2019 10:43:27 +0000 (12:43 +0200)
commitc9b6180dbf9ab3fef15ec5482997c99b0c762cd1
treeefa80f37e1046ae17172b1736b67c9f0b0aa5f23
parent922659ea771b3fd728149262c5ea15608fab9719
swiotlb-xen: use the same foreign page check everywhere

xen_dma_map_page uses a different and more complicated check for foreign
pages than the other three cache maintainance helpers.  Switch it to the
simpler pfn_valid method a well, and document the scheme with a single
improved comment in xen_dma_map_page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
include/xen/arm/page-coherent.h