]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: don't memset on free twice
authorKeith Busch <kbusch@kernel.org>
Thu, 26 Jan 2023 21:51:23 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 23:36:05 +0000 (15:36 -0800)
commit222cf3765544b85a63f952f7c8351d938d444168
tree740bff8de07e2ec6b74ce24533c73b1fec9f601f
parentb0036c0e1517ab12b26d47d41e0a54c1d6f0a95a
dmapool: don't memset on free twice

If debug is enabled, dmapool will poison the range, so no need to clear it
to 0 immediately before writing over it.

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