summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-06-20 15:49:15 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:38 +0200
commit43a7e99db6788110fb2bd97bdad5aa5c0c004aff (patch)
treef93e0090d28c9fdddae1d94d91c2a2ef47bdf50b /fs/btrfs/relocation.c
parentc83488afc5a772e424d8f159236bcf805b3c249c (diff)
downloadlinux-43a7e99db6788110fb2bd97bdad5aa5c0c004aff.tar.bz2
btrfs: Remove fs_info from btrfs_force_chunk_alloc
It can be referenced from the passed transaction handle. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r--fs/btrfs/relocation.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index ef1b5aad035e..22214033a4a2 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4169,8 +4169,7 @@ restart:
}
}
if (trans && progress && err == -ENOSPC) {
- ret = btrfs_force_chunk_alloc(trans, fs_info,
- rc->block_group->flags);
+ ret = btrfs_force_chunk_alloc(trans, rc->block_group->flags);
if (ret == 1) {
err = 0;
progress = 0;