dma-direct: factor out a helper for DMA_ATTR_NO_KERNEL_MAPPING allocations
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Oct 2021 11:08:07 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:56 +0000 (10:22 +0200)
commit639518f8e0d303203bf96159d217c33242da8870
tree1c2e2a32b2a74ca920c1d41f86fd31b8e1d3474c
parent56ab0c01027492cd161c64148e1dc892c56887ad
dma-direct: factor out a helper for DMA_ATTR_NO_KERNEL_MAPPING allocations

[ Upstream commit d541ae55d538265861ef729a64d2d816d34ef1e2 ]

Split the code for DMA_ATTR_NO_KERNEL_MAPPING allocations into a separate
helper to make dma_direct_alloc a little more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/direct.c