dma-contiguous: fix comment for dma_release_from_contiguous
authorPeter Collingbourne <pcc@google.com>
Thu, 23 Apr 2020 16:31:31 +0000 (09:31 -0700)
committerChristoph Hellwig <hch@lst.de>
Sat, 25 Apr 2020 11:17:06 +0000 (13:17 +0200)
Commit 90ae409f9eb3 ("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>
kernel/dma/contiguous.c

index 8bc6f2d670f956f24f4786b7dafb1d49b69beb85..15bc5026c485f250c39e2d70ab5eff74e63b6329 100644 (file)
@@ -222,8 +222,8 @@ bool dma_release_from_contiguous(struct device *dev, struct page *pages,
  * @gfp:   Allocation flags.
  *
  * This function allocates contiguous memory buffer for specified device. It
- * first tries to use device specific contiguous memory area if available or
- * the default global one, then tries a fallback allocation of normal pages.
+ * tries to use device specific contiguous memory area if available, or the
+ * default global one.
  *
  * 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