diff options
author | Chen Yu <[email protected]> | 2024-08-31 19:01:19 +0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2024-09-04 07:08:51 +0300 |
commit | f689a3ab7b8ece9e5787ff058b96b8630e4931ad (patch) | |
tree | 2b43efba199ad12f3b52db8263dfa22ec807f724 /drivers/fpga/fpga-bridge.c | |
parent | de6c85bf918ea52d5c680f0d130b37ee2ff152d6 (diff) |
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: Chen Yu <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions