btrfs: push errors up from add_async_extent()

[ Upstream commit dbe6cda68f ]

The memory allocation error in add_async_extent() is not handled
properly, return an error and push the BUG_ON to the caller. Handling it
there is not trivial so at least make it visible.

Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
David Sterba 2024-01-24 17:26:25 +01:00 • committed by Greg Kroah-Hartman
commit 6be930556d