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)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Dec 2021 11:49:50 +0000 (12:49 +0100)
commitd541ae55d538265861ef729a64d2d816d34ef1e2
tree588a8f72e6431386af0db5cb18e041feb5aa94ff
parentf3c962226dbec7a611ddd4eb7af7f4e19f4790ea
dma-direct: factor out a helper for DMA_ATTR_NO_KERNEL_MAPPING allocations

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>
kernel/dma/direct.c