]> 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>
Fri, 10 Feb 2023 23:36:04 +0000 (15:36 -0800)
commite28713ce4737c3c81aa029522bd755a7d87f12f5
tree5e9b55e91462f69bed7e8e4159a9b27fc1c51ea9
parentfb78cd91bd270f2c4c47d140cec4256a3ef3d044
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