btrfs: go to matching label when cleaning em in btrfs_submit_direct
authorPeng Hao <flyingpeng@tencent.com>
Mon, 9 Jan 2023 20:08:31 +0000 (21:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Feb 2023 16:50:33 +0000 (17:50 +0100)
commitd31de3785047a24959eda835b0bafb1f8629f8a9
treecce9a1439d771fedefabcc600ae24e4afa155ebb
parent1ec49744ba83f0429c5c706708610f7821a7b6f4
btrfs: go to matching label when cleaning em in btrfs_submit_direct

When btrfs_get_chunk_map fails to allocate a new em the cleanup does not
need to be done so the goto target is out_err, which is consistent with
current coding style.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c