summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorNikolay Borisov2018-06-20 14:49:06 +0200
committerDavid Sterba2018-08-06 13:12:36 +0200
commitc216b2039aa06f9be23a9f385cb2d2f6434927d7 (patch)
treeb4967b2da91f9b162a2fdb2a58236f3d2b9e4a30 /fs/btrfs/extent-tree.c
parentbtrfs: Remove fs_info from do_chunk_alloc (diff)
downloadkernel-qcow2-linux-c216b2039aa06f9be23a9f385cb2d2f6434927d7.tar.gz
kernel-qcow2-linux-c216b2039aa06f9be23a9f385cb2d2f6434927d7.tar.xz
kernel-qcow2-linux-c216b2039aa06f9be23a9f385cb2d2f6434927d7.zip
btrfs: Remove fs_info from btrfs_alloc_chunk
It can be referenced from trans since the function is always called within a transaction. 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/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 556b93c05ee3..c0928fcb3f32 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4568,7 +4568,7 @@ void check_system_chunk(struct btrfs_trans_handle *trans,
* the paths we visit in the chunk tree (they were already COWed
* or created in the current transaction for example).
*/
- ret = btrfs_alloc_chunk(trans, fs_info, flags);
+ ret = btrfs_alloc_chunk(trans, flags);
}
if (!ret) {
@@ -4670,7 +4670,7 @@ again:
*/
check_system_chunk(trans, fs_info, flags);
- ret = btrfs_alloc_chunk(trans, fs_info, flags);
+ ret = btrfs_alloc_chunk(trans, flags);
trans->allocating_chunk = false;
spin_lock(&space_info->lock);