summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-06-20 15:48:55 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:34 +0200
commite7e02096d98388a003323c4223630d011ba1b382 (patch)
treebf1bb668b72c50df81c3655c157273cd4593106e /fs/btrfs/extent-tree.c
parent88a979c615d0d9da19498b3b7692e725fb2f387e (diff)
downloadlwn-e7e02096d98388a003323c4223630d011ba1b382.tar.gz
lwn-e7e02096d98388a003323c4223630d011ba1b382.zip
btrfs: Remove fs_info from btrfs_make_block_group
This function is always called with a valid transaction handle from where we can reference the fs_info. No functional changes. 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 10586687753c..fa78a0175f80 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -10241,10 +10241,10 @@ next:
trans->can_flush_pending_bgs = can_flush_pending_bgs;
}
-int btrfs_make_block_group(struct btrfs_trans_handle *trans,
- struct btrfs_fs_info *fs_info, u64 bytes_used,
+int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used,
u64 type, u64 chunk_offset, u64 size)
{
+ struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_block_group_cache *cache;
int ret;