btrfs: push errors up from add_async_extent()
authorDavid Sterba <dsterba@suse.com>
Wed, 24 Jan 2024 16:26:25 +0000 (17:26 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:50 +0000 (16:24 +0100)
commitdbe6cda68f0e1be269e6509c8bf3d8d89089c1c4
treee68b9bc50827cd05e8c7ebd9be291ee7679bc533
parent4e94ee80e197bf0eaa18b3eb2b98850f0adced3a
btrfs: push errors up from add_async_extent()

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>
fs/btrfs/inode.c