diff mbox

btrfs: remove unused fs_info parameter

Message ID 1524728942-14403-1-git-send-email-gujx@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gu Jinxiang April 26, 2018, 7:49 a.m. UTC
Since the commit below parameter fs_info in alloc_reloc_control
be no used. So remove it.
commit c6100a4b4e3d ("Btrfs: replace tree->mapping with
tree->private_data")

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
---
 fs/btrfs/relocation.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Nikolay Borisov April 26, 2018, 8 a.m. UTC | #1
On 26.04.2018 10:49, Gu Jinxiang wrote:
> Since the commit below parameter fs_info in alloc_reloc_control
> be no used. So remove it.
> commit c6100a4b4e3d ("Btrfs: replace tree->mapping with
> tree->private_data")
> 
> Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>

Reviewed-by: Nikolay Borisov <nborisov@suse.com>

> ---
>  fs/btrfs/relocation.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
> index 00b7d3231821..d7b7b86f4931 100644
> --- a/fs/btrfs/relocation.c
> +++ b/fs/btrfs/relocation.c
> @@ -4299,7 +4299,7 @@ struct inode *create_reloc_inode(struct btrfs_fs_info *fs_info,
>  	return inode;
>  }
>  
> -static struct reloc_control *alloc_reloc_control(struct btrfs_fs_info *fs_info)
> +static struct reloc_control *alloc_reloc_control(void)
>  {
>  	struct reloc_control *rc;
>  
> @@ -4366,7 +4366,7 @@ int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
>  	int rw = 0;
>  	int err = 0;
>  
> -	rc = alloc_reloc_control(fs_info);
> +	rc = alloc_reloc_control();
>  	if (!rc)
>  		return -ENOMEM;
>  
> @@ -4562,7 +4562,7 @@ int btrfs_recover_relocation(struct btrfs_root *root)
>  	if (list_empty(&reloc_roots))
>  		goto out;
>  
> -	rc = alloc_reloc_control(fs_info);
> +	rc = alloc_reloc_control();
>  	if (!rc) {
>  		err = -ENOMEM;
>  		goto out;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Anand Jain April 26, 2018, 8:11 a.m. UTC | #2
On 04/26/2018 03:49 PM, Gu Jinxiang wrote:
> Since the commit below parameter fs_info in alloc_reloc_control
> be no used. So remove it.
> commit c6100a4b4e3d ("Btrfs: replace tree->mapping with
> tree->private_data")
> 
> Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>

Reviewed-by: Anand Jain <anand.jain@oracle.com>

Thanks, Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Sterba April 26, 2018, 1:08 p.m. UTC | #3
On Thu, Apr 26, 2018 at 03:49:02PM +0800, Gu Jinxiang wrote:
> Since the commit below parameter fs_info in alloc_reloc_control
> be no used. So remove it.
> commit c6100a4b4e3d ("Btrfs: replace tree->mapping with
> tree->private_data")
> 
> Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>

Added to next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 00b7d3231821..d7b7b86f4931 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4299,7 +4299,7 @@  struct inode *create_reloc_inode(struct btrfs_fs_info *fs_info,
 	return inode;
 }
 
-static struct reloc_control *alloc_reloc_control(struct btrfs_fs_info *fs_info)
+static struct reloc_control *alloc_reloc_control(void)
 {
 	struct reloc_control *rc;
 
@@ -4366,7 +4366,7 @@  int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start)
 	int rw = 0;
 	int err = 0;
 
-	rc = alloc_reloc_control(fs_info);
+	rc = alloc_reloc_control();
 	if (!rc)
 		return -ENOMEM;
 
@@ -4562,7 +4562,7 @@  int btrfs_recover_relocation(struct btrfs_root *root)
 	if (list_empty(&reloc_roots))
 		goto out;
 
-	rc = alloc_reloc_control(fs_info);
+	rc = alloc_reloc_control();
 	if (!rc) {
 		err = -ENOMEM;
 		goto out;