mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 07:42:38 -04:00
btrfs: remove pointless out label from modify_free_space_bitmap()
All we do under the label is to return, so there's no point in having it, just return directly whenever we get an error. 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>
This commit is contained in:
committed by
David Sterba
parent
22b609768c
commit
ffb7068f16
@@ -630,7 +630,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
|
||||
ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1);
|
||||
if (ret)
|
||||
goto out;
|
||||
return ret;
|
||||
|
||||
prev_bit_set = free_space_test_bit(block_group, path, prev_block);
|
||||
|
||||
@@ -639,7 +639,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
if (start >= key.objectid + key.offset) {
|
||||
ret = free_space_next_bitmap(trans, root, path);
|
||||
if (ret)
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
key.objectid = start;
|
||||
@@ -648,7 +648,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
|
||||
ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1);
|
||||
if (ret)
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -664,7 +664,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
break;
|
||||
ret = free_space_next_bitmap(trans, root, path);
|
||||
if (ret)
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -677,7 +677,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
if (end >= key.objectid + key.offset) {
|
||||
ret = free_space_next_bitmap(trans, root, path);
|
||||
if (ret)
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
|
||||
next_bit_set = free_space_test_bit(block_group, path, end);
|
||||
@@ -706,11 +706,7 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
}
|
||||
|
||||
btrfs_release_path(path);
|
||||
ret = update_free_space_extent_count(trans, block_group, path,
|
||||
new_extents);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
return update_free_space_extent_count(trans, block_group, path, new_extents);
|
||||
}
|
||||
|
||||
static int remove_free_space_extent(struct btrfs_trans_handle *trans,
|
||||
|
||||
Reference in New Issue
Block a user