diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-07-31 23:32:27 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 07:13:00 -0400 |
commit | ab9ce7d42bf66f0750a4ca4a228a2db238376afb (patch) | |
tree | 323f06a936bec590bf2b69ccfe56bc6588c2599a | |
parent | 9add29457ac124e846cde4b875c632edaa722c08 (diff) |
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>
-rw-r--r-- | fs/btrfs/ctree.h | 2 | ||||
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 | ||||
-rw-r--r-- | fs/btrfs/free-space-tree.c | 2 | ||||
-rw-r--r-- | fs/btrfs/qgroup.c | 2 | ||||
-rw-r--r-- | fs/btrfs/root-tree.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 2e32584c635f..9ef47a171e2f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2993,7 +2993,7 @@ int btrfs_del_root_ref(struct btrfs_trans_handle *trans, | |||
2993 | u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, | 2993 | u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, |
2994 | const char *name, int name_len); | 2994 | const char *name, int name_len); |
2995 | int btrfs_del_root(struct btrfs_trans_handle *trans, | 2995 | int btrfs_del_root(struct btrfs_trans_handle *trans, |
2996 | struct btrfs_fs_info *fs_info, const struct btrfs_key *key); | 2996 | const struct btrfs_key *key); |
2997 | int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 2997 | int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
2998 | const struct btrfs_key *key, | 2998 | const struct btrfs_key *key, |
2999 | struct btrfs_root_item *item); | 2999 | struct btrfs_root_item *item); |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index fcaf598f4222..042dd4186fb8 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -9028,7 +9028,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root, | |||
9028 | if (err) | 9028 | if (err) |
9029 | goto out_end_trans; | 9029 | goto out_end_trans; |
9030 | 9030 | ||
9031 | ret = btrfs_del_root(trans, fs_info, &root->root_key); | 9031 | ret = btrfs_del_root(trans, &root->root_key); |
9032 | if (ret) { | 9032 | if (ret) { |
9033 | btrfs_abort_transaction(trans, ret); | 9033 | btrfs_abort_transaction(trans, ret); |
9034 | err = ret; | 9034 | err = ret; |
diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c index b5950aacd697..d6736595ec57 100644 --- a/fs/btrfs/free-space-tree.c +++ b/fs/btrfs/free-space-tree.c | |||
@@ -1236,7 +1236,7 @@ int btrfs_clear_free_space_tree(struct btrfs_fs_info *fs_info) | |||
1236 | if (ret) | 1236 | if (ret) |
1237 | goto abort; | 1237 | goto abort; |
1238 | 1238 | ||
1239 | ret = btrfs_del_root(trans, fs_info, &free_space_root->root_key); | 1239 | ret = btrfs_del_root(trans, &free_space_root->root_key); |
1240 | if (ret) | 1240 | if (ret) |
1241 | goto abort; | 1241 | goto abort; |
1242 | 1242 | ||
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index e11ed7b3f32a..4353bb69bb86 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c | |||
@@ -1088,7 +1088,7 @@ int btrfs_quota_disable(struct btrfs_fs_info *fs_info) | |||
1088 | goto end_trans; | 1088 | goto end_trans; |
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | ret = btrfs_del_root(trans, fs_info, "a_root->root_key); | 1091 | ret = btrfs_del_root(trans, "a_root->root_key); |
1092 | if (ret) { | 1092 | if (ret) { |
1093 | btrfs_abort_transaction(trans, ret); | 1093 | btrfs_abort_transaction(trans, ret); |
1094 | goto end_trans; | 1094 | goto end_trans; |
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) | |||
320 | 320 | ||
321 | /* drop the root item for 'key' from the tree root */ | 321 | /* drop the root item for 'key' from the tree root */ |
322 | int btrfs_del_root(struct btrfs_trans_handle *trans, | 322 | int btrfs_del_root(struct btrfs_trans_handle *trans, |
323 | struct btrfs_fs_info *fs_info, const struct btrfs_key *key) | 323 | const struct btrfs_key *key) |
324 | { | 324 | { |
325 | struct btrfs_root *root = fs_info->tree_root; | 325 | struct btrfs_root *root = trans->fs_info->tree_root; |
326 | struct btrfs_path *path; | 326 | struct btrfs_path *path; |
327 | int ret; | 327 | int ret; |
328 | 328 | ||