dma-direct: factor out a dma_direct_alloc_from_pool helper
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 09:06:09 +0000 (11:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 09:07:51 +0000 (11:07 +0200)
commit5b138c534fda57c2ebc1e6de72578aa1d70788a6
tree0d7aaa66000addf7ec01fa905ac274d18aa693c1
parent08a89c28304ae74e4c7422f784359e41a37e3e7c
dma-direct: factor out a dma_direct_alloc_from_pool helper

This ensures dma_direct_alloc_pages will use the right gfp mask, as
well as keeping the code for that common between the two allocators.

Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/direct.c