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>
Thu, 6 Apr 2023 02:42:40 +0000 (19:42 -0700)
commit9d062a8a4c6d5e6d1591cde41ac844d11f953ad8
tree59cab47fe1bfbf79c4e27c481d1e1335bfae2774
parent887aef615818dba18333be6f08de1922a475a15b
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