Skip to content
Commit f689a3ab authored by Chen Yu's avatar Chen Yu Committed by Christoph Hellwig
Browse files

dma-direct: optimize page freeing when it is not addressable



When the CMA allocation succeeds but isn't addressable, its buffer has
already been released and the page is set to NULL.  So later when the
normal page allocation succeeds but isn't addressable, __free_pages()
can be used to free that normal page rather than using
dma_free_contiguous that does extra checks that are not needed.

Signed-off-by: default avatarChen Yu <yu.c.chen@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent de6c85bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment