diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 13:20:49 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:41 +0200 |
commit | 9b7a2440ae51de73bf80e07b0465b9ed736397bd (patch) | |
tree | 511fc0c300a9729d11e82c3fcbcc78a9921e5e47 /fs/btrfs/disk-io.c | |
parent | btrfs: get fs_info from trans in update_block_group (diff) | |
download | linux-9b7a2440ae51de73bf80e07b0465b9ed736397bd.tar.xz linux-9b7a2440ae51de73bf80e07b0465b9ed736397bd.zip |
btrfs: get fs_info from trans in btrfs_create_tree
We can read fs_info from the transaction and can drop it from the
parameters.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 6fc09d24a7f1..f5d0517a8563 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1266,9 +1266,9 @@ struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) #endif struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, u64 objectid) { + struct btrfs_fs_info *fs_info = trans->fs_info; struct extent_buffer *leaf; struct btrfs_root *tree_root = fs_info->tree_root; struct btrfs_root *root; |