]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: simplify freeing
authorKeith Busch <kbusch@kernel.org>
Thu, 26 Jan 2023 21:51:22 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:05 +0000 (16:02 -0700)
commit80d04bb629f75a92581745c4a177a0ae0b233bb4
tree13b2f671c44cbbbf51dbb674c3466e01152cd4c9
parent387cb5bd472ced3c342724d83b949f675755f953
dmapool: simplify freeing

The actions for busy and not busy are mostly the same, so combine these
and remove the unnecessary function.  Also, the pool is about to be freed
so there's no need to poison the page data since we only check for poison
on alloc, which can't be done on a freed pool.

Link: https://lkml.kernel.org/r/20230126215125.4069751-10-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