diff options
author | 2025-03-07 12:33:50 +0000 | |
---|---|---|
committer | 2025-03-18 20:35:50 +0100 | |
commit | f75a043737ecf1d9499e58739746af447643096f (patch) | |
tree | 2a59a8cf1c5b8b69ce53e31e729552d4fbbfc0ed /fs/btrfs/relocation.c | |
parent | btrfs: make btrfs_iget_path() return a btrfs inode instead (diff) | |
download | wireguard-linux-f75a043737ecf1d9499e58739746af447643096f.tar.xz wireguard-linux-f75a043737ecf1d9499e58739746af447643096f.zip |
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 <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/relocation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 5359cf2b79b5..33d3b5ca7ee0 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -3763,9 +3763,9 @@ out: * the inode is in data relocation tree and its link count is 0 */ static noinline_for_stack struct inode *create_reloc_inode( - struct btrfs_fs_info *fs_info, const struct btrfs_block_group *group) { + struct btrfs_fs_info *fs_info = group->fs_info; struct btrfs_inode *inode = NULL; struct btrfs_trans_handle *trans; struct btrfs_root *root; @@ -3989,7 +3989,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start) goto out; } - rc->data_inode = create_reloc_inode(fs_info, rc->block_group); + rc->data_inode = create_reloc_inode(rc->block_group); if (IS_ERR(rc->data_inode)) { err = PTR_ERR(rc->data_inode); rc->data_inode = NULL; |