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.

Fixes: 2d55c16c0c54 ("dmapool: create/destroy cleanup")
Signed-off-by: Keith Busch <>
Reviewed-by: Christoph Hellwig <>
Cc: Matthew Wilcox <>
Cc: Tony Battersby <>
Signed-off-by: Andrew Morton <>
1 file changed