Skip to content

Commit

Permalink
btrfs: rename ret to ret2 in btrfs_recover_relocation()
Browse files Browse the repository at this point in the history
A preparatory patch to rename 'err' to 'ret', but ret is already used as an
intermediary return value, so first rename 'ret' to 'ret2'.

Signed-off-by: Anand Jain <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
asj authored and kdave committed May 24, 2024
1 parent 8dfaf90 commit 64dfcd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -4220,7 +4220,7 @@ int btrfs_recover_relocation(struct btrfs_fs_info *fs_info)
struct extent_buffer *leaf;
struct reloc_control *rc = NULL;
struct btrfs_trans_handle *trans;
int ret;
int ret2;
int err = 0;

path = btrfs_alloc_path();
Expand Down Expand Up @@ -4355,9 +4355,9 @@ int btrfs_recover_relocation(struct btrfs_fs_info *fs_info)
}
err = btrfs_commit_transaction(trans);
out_clean:
ret = clean_dirty_subvols(rc);
if (ret < 0 && !err)
err = ret;
ret2 = clean_dirty_subvols(rc);
if (ret2 < 0 && !err)
err = ret2;
out_unset:
unset_reloc_control(rc);
out_end:
Expand Down

0 comments on commit 64dfcd1

Please sign in to comment.