Skip to content

Commit 3ad0e56

Browse files
committed
btrfs: create_reloc_inode rename err to ret
Coding style fixes: Rename the variable err to ret, as it represents the return value. Signed-off-by: Anand Jain <[email protected]>
1 parent 5cd141b commit 3ad0e56

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

fs/btrfs/relocation.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3928,7 +3928,7 @@ static noinline_for_stack struct inode *create_reloc_inode(
39283928
struct btrfs_trans_handle *trans;
39293929
struct btrfs_root *root;
39303930
u64 objectid;
3931-
int err = 0;
3931+
int ret = 0;
39323932

39333933
root = btrfs_grab_root(fs_info->data_reloc_root);
39343934
trans = btrfs_start_transaction(root, 6);
@@ -3937,31 +3937,31 @@ static noinline_for_stack struct inode *create_reloc_inode(
39373937
return ERR_CAST(trans);
39383938
}
39393939

3940-
err = btrfs_get_free_objectid(root, &objectid);
3941-
if (err)
3940+
ret = btrfs_get_free_objectid(root, &objectid);
3941+
if (ret)
39423942
goto out;
39433943

3944-
err = __insert_orphan_inode(trans, root, objectid);
3945-
if (err)
3944+
ret = __insert_orphan_inode(trans, root, objectid);
3945+
if (ret)
39463946
goto out;
39473947

39483948
inode = btrfs_iget(fs_info->sb, objectid, root);
39493949
if (IS_ERR(inode)) {
39503950
delete_orphan_inode(trans, root, objectid);
3951-
err = PTR_ERR(inode);
3951+
ret = PTR_ERR(inode);
39523952
inode = NULL;
39533953
goto out;
39543954
}
39553955
BTRFS_I(inode)->index_cnt = group->start;
39563956

3957-
err = btrfs_orphan_add(trans, BTRFS_I(inode));
3957+
ret = btrfs_orphan_add(trans, BTRFS_I(inode));
39583958
out:
39593959
btrfs_put_root(root);
39603960
btrfs_end_transaction(trans);
39613961
btrfs_btree_balance_dirty(fs_info);
3962-
if (err) {
3962+
if (ret) {
39633963
iput(inode);
3964-
inode = ERR_PTR(err);
3964+
inode = ERR_PTR(ret);
39653965
}
39663966
return inode;
39673967
}

0 commit comments

Comments
 (0)