]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: remove pointless out label from update_free_space_extent_count()
authorFilipe Manana <fdmanana@suse.com>
Wed, 11 Jun 2025 11:18:26 +0000 (12:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:01 +0000 (23:58 +0200)
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>
fs/btrfs/free-space-tree.c

index 6418b3b5d16aa9f939d1f2ee73a81fd9a1327038..29fada10158cf21ff9aff5e53d4a793d52078aab 100644 (file)
@@ -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;
 }