aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-06-11 12:18:26 +0100
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:58:01 +0200
commite4e5fcbc62d0105e26b06375b62cf1a2cb54d7b6 (patch)
tree13365cfd8db711da068a9efb1a55caf9d58f98ed
parentbtrfs: remove pointless out label from add_new_free_space_info() (diff)
downloadwireguard-linux-e4e5fcbc62d0105e26b06375b62cf1a2cb54d7b6.tar.xz
wireguard-linux-e4e5fcbc62d0105e26b06375b62cf1a2cb54d7b6.zip
btrfs: remove pointless out label from update_free_space_extent_count()
Just return directly, we don't need the label since all we do under it is to return. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/free-space-tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c
index 6418b3b5d16a..29fada10158c 100644
--- a/fs/btrfs/free-space-tree.c
+++ b/fs/btrfs/free-space-tree.c
@@ -491,10 +491,9 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
return 0;
info = search_free_space_info(trans, block_group, path, 1);
- if (IS_ERR(info)) {
- ret = PTR_ERR(info);
- goto out;
- }
+ if (IS_ERR(info))
+ return PTR_ERR(info);
+
flags = btrfs_free_space_flags(path->nodes[0], info);
extent_count = btrfs_free_space_extent_count(path->nodes[0], info);
@@ -510,7 +509,6 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
ret = convert_free_space_to_extents(trans, block_group, path);
}
-out:
return ret;
}