File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3928,7 +3928,7 @@ static noinline_for_stack struct inode *create_reloc_inode(
3928
3928
struct btrfs_trans_handle * trans ;
3929
3929
struct btrfs_root * root ;
3930
3930
u64 objectid ;
3931
- int err = 0 ;
3931
+ int ret = 0 ;
3932
3932
3933
3933
root = btrfs_grab_root (fs_info -> data_reloc_root );
3934
3934
trans = btrfs_start_transaction (root , 6 );
@@ -3937,31 +3937,31 @@ static noinline_for_stack struct inode *create_reloc_inode(
3937
3937
return ERR_CAST (trans );
3938
3938
}
3939
3939
3940
- err = btrfs_get_free_objectid (root , & objectid );
3941
- if (err )
3940
+ ret = btrfs_get_free_objectid (root , & objectid );
3941
+ if (ret )
3942
3942
goto out ;
3943
3943
3944
- err = __insert_orphan_inode (trans , root , objectid );
3945
- if (err )
3944
+ ret = __insert_orphan_inode (trans , root , objectid );
3945
+ if (ret )
3946
3946
goto out ;
3947
3947
3948
3948
inode = btrfs_iget (fs_info -> sb , objectid , root );
3949
3949
if (IS_ERR (inode )) {
3950
3950
delete_orphan_inode (trans , root , objectid );
3951
- err = PTR_ERR (inode );
3951
+ ret = PTR_ERR (inode );
3952
3952
inode = NULL ;
3953
3953
goto out ;
3954
3954
}
3955
3955
BTRFS_I (inode )-> index_cnt = group -> start ;
3956
3956
3957
- err = btrfs_orphan_add (trans , BTRFS_I (inode ));
3957
+ ret = btrfs_orphan_add (trans , BTRFS_I (inode ));
3958
3958
out :
3959
3959
btrfs_put_root (root );
3960
3960
btrfs_end_transaction (trans );
3961
3961
btrfs_btree_balance_dirty (fs_info );
3962
- if (err ) {
3962
+ if (ret ) {
3963
3963
iput (inode );
3964
- inode = ERR_PTR (err );
3964
+ inode = ERR_PTR (ret );
3965
3965
}
3966
3966
return inode ;
3967
3967
}
You can’t perform that action at this time.
0 commit comments