dma-direct: use is_swiotlb_active in dma_direct_map_page
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Feb 2022 08:44:32 +0000 (09:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 05:21:08 +0000 (07:21 +0200)
commit07410559f38360885e91cff1b800168681ac515c
tree954ff4eb49ffee387a978e37e296d42582317547
parentb2d229d4ddb17db541098b83524d901257e93845
dma-direct: use is_swiotlb_active in dma_direct_map_page

Use the more specific is_swiotlb_active check instead of checking the
global swiotlb_force variable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
kernel/dma/direct.h