]> 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>
Wed, 5 Apr 2023 23:02:05 +0000 (16:02 -0700)
commit87ad8c83460781a86a3688d01c91f3fda9fd2a81
tree09c85366c3bc47a15e5b22910026a6731a489370
parent80d04bb629f75a92581745c4a177a0ae0b233bb4
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