[PATCH 19/29] btrfs: mark_garbage_root rename err to ret2

Anand Jain
2024-03-19T14:58:27Z

In this function, the variable err is used as the second return value. If
it is not zero, rename it to ret2.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
fs/btrfs/relocation.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 030262943190..6f8747c907d5 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4223,7 +4223,8 @@ static noinline_for_stack int mark_garbage_root(struct btrfs_root *root)
{
struct btrfs_fs_info *fs_info = root->fs_info;
struct btrfs_trans_handle *trans;
- int ret, err;
+ int ret;
+ int ret2;

trans = btrfs_start_transaction(fs_info->tree_root, 0);
if (IS_ERR(trans))
@@ -4236,9 +4237,10 @@ static noinline_for_stack int mark_garbage_root(struct btrfs_root *root)
ret = btrfs_update_root(trans, fs_info->tree_root,
&root->root_key, &root->root_item);

- err = btrfs_end_transaction(trans);
- if (err)
- return err;
+ ret2 = btrfs_end_transaction(trans);
+ if (ret2)
+ return ret2;
+
return ret;
}

--
2.38.1