Commit bd0d9a61 authored by Anand Jain's avatar Anand Jain Committed by David Sterba

btrfs: rename ret to ret2 in btrfs_recover_relocation()

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: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ba69f42a
......@@ -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();
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment