diff options
author | Peng Hao <flyingpeng@tencent.com> | 2023-01-09 23:08:31 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-02-13 19:50:33 +0300 |
commit | d31de3785047a24959eda835b0bafb1f8629f8a9 (patch) | |
tree | cce9a1439d771fedefabcc600ae24e4afa155ebb /fs/btrfs | |
parent | 1ec49744ba83f0429c5c706708610f7821a7b6f4 (diff) | |
download | linux-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.c | 2 |
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); |