diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-05-29 09:01:53 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-30 16:46:52 +0200 |
commit | cdb345a877205849042a18cc568a17620935b8f9 (patch) | |
tree | 7f08260d23e4441056de385f8efc68b8ae35436f /fs/btrfs/uuid-tree.c | |
parent | Btrfs: remove unused check of skip_locking (diff) | |
download | linux-cdb345a877205849042a18cc568a17620935b8f9.tar.xz linux-cdb345a877205849042a18cc568a17620935b8f9.zip |
btrfs: Remove fs_info argument from btrfs_uuid_tree_add
This function always takes a transaction handle which contains a
reference to the fs_info. Use that and remove the extra argument.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/uuid-tree.c')
-rw-r--r-- | fs/btrfs/uuid-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c index 1ba7ca2a4200..8be956ed4603 100644 --- a/fs/btrfs/uuid-tree.c +++ b/fs/btrfs/uuid-tree.c @@ -79,10 +79,10 @@ out: return ret; } -int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, +int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, u64 subid_cpu) { + struct btrfs_fs_info *fs_info = trans->fs_info; struct btrfs_root *uuid_root = fs_info->uuid_root; int ret; struct btrfs_path *path = NULL; |