]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: speedup DMAPOOL_DEBUG with init_on_alloc
authorTony Battersby <tonyb@cybernetics.com>
Thu, 26 Jan 2023 21:51:18 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:04 +0000 (16:02 -0700)
commit030d3b95f2723994ccccd6fb2feb7b15b052ce51
treebb66fcba6bdc13c3f23a793e3e9486c3687e740a
parentf0a681fe6ff3b4fb4a9810b8978df327540977fd
dmapool: speedup DMAPOOL_DEBUG with init_on_alloc

Avoid double-memset of the same allocated memory in dma_pool_alloc() when
both DMAPOOL_DEBUG is enabled and init_on_alloc=1.

Link: https://lkml.kernel.org/r/20230126215125.4069751-6-kbusch@meta.com
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool.c