Re: [PATCH 04/10] dma-direct: clean up the remapping checks in dma_direct_alloc

2021-11-09 Thread Christoph Hellwig
On Thu, Nov 04, 2021 at 12:35:59PM +, Robin Murphy wrote: >> @@ -166,6 +166,7 @@ static void *dma_direct_alloc_from_pool(struct device >> *dev, size_t size, >> void *dma_direct_alloc(struct device *dev, size_t size, >> dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) >>

Re: [PATCH 04/10] dma-direct: clean up the remapping checks in dma_direct_alloc

2021-11-04 Thread Robin Murphy
On 2021-10-21 10:06, Christoph Hellwig wrote: Add a local variable to track if we want to remap the returned address using vmap and use that to simplify the code flow. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 47 +++-- 1 file

[PATCH 04/10] dma-direct: clean up the remapping checks in dma_direct_alloc

2021-10-21 Thread Christoph Hellwig
Add a local variable to track if we want to remap the returned address using vmap and use that to simplify the code flow. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 47 +++-- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git