swiotlb: refactor swiotlb_tbl_map_single
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Feb 2021 10:08:35 +0000 (11:08 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 22 Feb 2021 19:40:14 +0000 (14:40 -0500)
commit26a7e094783d482f3e125f09945a5bb1d867b2e6
tree207b68c536296f876763ed4eaf4c64128567e0ee
parentca10d0f8e530600ec63c603dbace2c30927d70b7
swiotlb: refactor swiotlb_tbl_map_single

Split out a bunch of a self-contained helpers to make the function easier
to follow.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jianxiong Gao <jxgao@google.com>
Tested-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c