mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 12:16:49 +07:00
dma-contiguous: fix comment for dma_release_from_contiguous
Commit 90ae409f9e
("dma-direct: fix zone selection
after an unaddressable CMA allocation") changed the logic in
dma_release_from_contiguous to remove the normal pages fallback path,
but did not update the comment. Fix that.
Signed-off-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
1d659236fb
commit
298f3db6ee
@ -222,8 +222,8 @@ bool dma_release_from_contiguous(struct device *dev, struct page *pages,
|
|||||||
* @gfp: Allocation flags.
|
* @gfp: Allocation flags.
|
||||||
*
|
*
|
||||||
* This function allocates contiguous memory buffer for specified device. It
|
* This function allocates contiguous memory buffer for specified device. It
|
||||||
* first tries to use device specific contiguous memory area if available or
|
* tries to use device specific contiguous memory area if available, or the
|
||||||
* the default global one, then tries a fallback allocation of normal pages.
|
* default global one.
|
||||||
*
|
*
|
||||||
* Note that it byapss one-page size of allocations from the global area as
|
* Note that it byapss one-page size of allocations from the global area as
|
||||||
* the addresses within one page are always contiguous, so there is no need
|
* the addresses within one page are always contiguous, so there is no need
|
||||||
|
Loading…
Reference in New Issue
Block a user