Skip to content

Commit 463d439

Browse files
kleikampmszyprow
authored andcommitted
dma/pool: eliminate alloc_pages warning in atomic_pool_expand
atomic_pool_expand iteratively tries the allocation while decrementing the page order. There is no need to issue a warning if an attempted allocation fails. Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Fixes: d7e673e ("dma-pool: Only allocate from CMA when in same memory zone") [mszyprow: fixed typo] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20251202152810.142370-1-dave.kleikamp@oracle.com
1 parent d0d08f4 commit 463d439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/dma/pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size,
9393
page = dma_alloc_from_contiguous(NULL, 1 << order,
9494
order, false);
9595
if (!page)
96-
page = alloc_pages(gfp, order);
96+
page = alloc_pages(gfp | __GFP_NOWARN, order);
9797
} while (!page && order-- > 0);
9898
if (!page)
9999
goto out;

0 commit comments

Comments
 (0)