swiotlb: refactor swiotlb_map_page
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Aug 2018 14:21:10 +0000 (16:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:46:58 +0000 (08:46 +0200)
commitc4dae366925f929749b2a26efa53b561904a9a4f
treed963b2c400b43fe7462848d3bf019cc172c59a75
parent4803b44e68fc08e76f00dec90074d199a11ad6f5
swiotlb: refactor swiotlb_map_page

Remove the somewhat useless map_single function, and replace it with a
swiotlb_bounce_page handler that handles everything related to actually
bouncing a page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c