btrfs: remove duplicate free_async_extent_pages() on reservation error
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Fri, 14 Jul 2023 15:18:19 +0000 (10:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:13 +0000 (14:52 +0200)
commit75d305c55b130bae5077ec262440240fec4e6281
tree10d3fd8edefe8c9079551db3860cf1b66230103d
parent52ea5bfbfa6d5432ed46e0a18b9e5ca4e4f91852
btrfs: remove duplicate free_async_extent_pages() on reservation error

While performing compressed writes, if the extent reservation fails, the
async extent pages are first freed in the error check for return value
ret, and then again at out_free label.

Remove the first call to free_async_extent_pages().

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c