]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
swiotlb-xen: use ->map_page to implement ->map_sg
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Apr 2019 07:19:58 +0000 (09:19 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 May 2019 23:51:29 +0000 (19:51 -0400)
commit8b35d9feed8e4e66dc4048f776c356e26e2a8216
tree6d32ab8bafd97690a83d22e944ac6bac46e93994
parentaca351cc4c034b4880f0a0dc3602ed3761ef6f01
swiotlb-xen: use ->map_page to implement ->map_sg

We can simply loop over the segments and map them, removing lots of
duplicate code.

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c