diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-01 06:32:27 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 14:13:00 +0300 |
commit | ab9ce7d42bf66f0750a4ca4a228a2db238376afb (patch) | |
tree | 323f06a936bec590bf2b69ccfe56bc6588c2599a /fs/btrfs/root-tree.c | |
parent | 9add29457ac124e846cde4b875c632edaa722c08 (diff) | |
download | linux-ab9ce7d42bf66f0750a4ca4a228a2db238376afb.tar.xz |
btrfs: Remove fs_info from btrfs_del_root
It can be referenced from the passed transaction handle.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index c451285976ac..f7c14c454f91 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c @@ -320,9 +320,9 @@ int btrfs_find_orphan_roots(struct btrfs_fs_info *fs_info) /* drop the root item for 'key' from the tree root */ int btrfs_del_root(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, const struct btrfs_key *key) + const struct btrfs_key *key) { - struct btrfs_root *root = fs_info->tree_root; + struct btrfs_root *root = trans->fs_info->tree_root; struct btrfs_path *path; int ret; |