summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorPeng Hao <flyingpeng@tencent.com>2023-01-09 23:08:31 +0300
committerDavid Sterba <dsterba@suse.com>2023-02-13 19:50:33 +0300
commitd31de3785047a24959eda835b0bafb1f8629f8a9 (patch)
treecce9a1439d771fedefabcc600ae24e4afa155ebb /fs/btrfs
parent1ec49744ba83f0429c5c706708610f7821a7b6f4 (diff)
downloadlinux-d31de3785047a24959eda835b0bafb1f8629f8a9.tar.xz
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 77c2acc06891..7fa1db6a474a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8080,7 +8080,7 @@ static void btrfs_submit_direct(const struct iomap_iter *iter,
if (IS_ERR(em)) {
status = errno_to_blk_status(PTR_ERR(em));
em = NULL;
- goto out_err_em;
+ goto out_err;
}
ret = btrfs_get_io_geometry(fs_info, em, btrfs_op(dio_bio),
logical, &geom);