Skip to content

Commit f75a043

Browse files
fdmananakdave
authored andcommitted
btrfs: remove unnecessary fs_info argument from create_reloc_inode()
The fs_info can be taken from the given block group, so there is no need to pass it as an argument. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 92be661 commit f75a043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/relocation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,9 +3763,9 @@ static void delete_orphan_inode(struct btrfs_trans_handle *trans,
37633763
* the inode is in data relocation tree and its link count is 0
37643764
*/
37653765
static noinline_for_stack struct inode *create_reloc_inode(
3766-
struct btrfs_fs_info *fs_info,
37673766
const struct btrfs_block_group *group)
37683767
{
3768+
struct btrfs_fs_info *fs_info = group->fs_info;
37693769
struct btrfs_inode *inode = NULL;
37703770
struct btrfs_trans_handle *trans;
37713771
struct btrfs_root *root;
@@ -3989,7 +3989,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
39893989
goto out;
39903990
}
39913991

3992-
rc->data_inode = create_reloc_inode(fs_info, rc->block_group);
3992+
rc->data_inode = create_reloc_inode(rc->block_group);
39933993
if (IS_ERR(rc->data_inode)) {
39943994
err = PTR_ERR(rc->data_inode);
39953995
rc->data_inode = NULL;

0 commit comments

Comments
 (0)