This and the previous one seem very much duplicated boilerplate code. Why can't just normal branches for allocating and freeing normal pages vs cma? We even have an existing helper for that with dma_alloc_contiguous().
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA heap to dmabu... Christoph Hellwig
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA heap to ... John Stultz
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA heap... Christoph Hellwig
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA ... Benjamin Gaignard
- Re: [PATCH v6 4/5] dma-buf: heaps: Add ... Christoph Hellwig
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA ... Laura Abbott
- Re: [PATCH v6 4/5] dma-buf: heaps: Add ... Christoph Hellwig
- Re: [PATCH v6 4/5] dma-buf: heaps:... Andrew F. Davis
- Re: [PATCH v6 4/5] dma-buf: he... Christoph Hellwig
- Re: [PATCH v6 4/5] dma-buf: heaps: Add CMA ... Andrew F. Davis
- Re: [PATCH v6 4/5] dma-buf: heaps: Add ... Christoph Hellwig