diff options
author | 2024-08-13 21:54:50 -0600 | |
---|---|---|
committer | 2024-09-03 21:15:36 -0700 | |
commit | 463586e9ff398f951a9a63d98a3b93f44434d20c (patch) | |
tree | ddaacb6643ffc9156b6e46fb7684b3fb6ada2a9f /include/linux/err.h | |
parent | mm/contig_alloc: support __GFP_COMP (diff) | |
download | wireguard-linux-463586e9ff398f951a9a63d98a3b93f44434d20c.tar.xz wireguard-linux-463586e9ff398f951a9a63d98a3b93f44434d20c.zip |
mm/cma: add cma_{alloc,free}_folio()
With alloc_contig_range() and free_contig_range() supporting large folios,
CMA can allocate and free large folios too, by cma_alloc_folio() and
cma_free_folio().
[yuzhao@google.com: fix WARN in cma_alloc_folio()]
Link: https://lkml.kernel.org/r/Zsd0PgAQmbpR8jS6@google.com
Link: https://lkml.kernel.org/r/20240814035451.773331-3-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Acked-by: Zi Yan <ziy@nvidia.com>
Cc: Frank van der Linden <fvdl@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/err.h')
0 files changed, 0 insertions, 0 deletions