dmapool: rearrange page alloc failure handling
authorKeith Busch <kbusch@kernel.org>
Thu, 26 Jan 2023 21:51:20 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 02:42:40 +0000 (19:42 -0700)
commit36d1a28921a4012288e17ef5ac98329ce440d410
tree56eedfac5911d5db6dc4619f8c83104728923ca7
parent52e7d56539794b20fb9458c06292dfd24bba6a2d
dmapool: rearrange page alloc failure handling

Handle the error in a condition so the good path can be in the normal
flow.

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