diff options
author | Peng Hao <[email protected]> | 2023-01-09 21:08:31 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-02-13 17:50:33 +0100 |
commit | d31de3785047a24959eda835b0bafb1f8629f8a9 (patch) | |
tree | cce9a1439d771fedefabcc600ae24e4afa155ebb | |
parent | 1ec49744ba83f0429c5c706708610f7821a7b6f4 (diff) |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
[ update changelog ]
Signed-off-by: David Sterba <[email protected]>
-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); |