diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-02-07 10:55:43 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 09:09:31 -0400 |
commit | e5c304e651e6ab13495d4aabb5e7d5d37933dc04 (patch) | |
tree | 064a8f99766df4d1d3f1f65926ce9b111f475509 /fs/btrfs/transaction.c | |
parent | b84acab38f58b775f8cd3f38422c610a75b3eb70 (diff) |
btrfs: Don't pass fs_info to btrfs_run_delayed_items/_nr
We already pass the transaction which has a reference to the fs_info,
so use that. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 87f94228abe9..e332026a7f82 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -1530,7 +1530,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1530 | * otherwise we corrupt the FS during | 1530 | * otherwise we corrupt the FS during |
1531 | * snapshot | 1531 | * snapshot |
1532 | */ | 1532 | */ |
1533 | ret = btrfs_run_delayed_items(trans, fs_info); | 1533 | ret = btrfs_run_delayed_items(trans); |
1534 | if (ret) { /* Transaction aborted */ | 1534 | if (ret) { /* Transaction aborted */ |
1535 | btrfs_abort_transaction(trans, ret); | 1535 | btrfs_abort_transaction(trans, ret); |
1536 | goto fail; | 1536 | goto fail; |
@@ -2067,7 +2067,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans) | |||
2067 | if (ret) | 2067 | if (ret) |
2068 | goto cleanup_transaction; | 2068 | goto cleanup_transaction; |
2069 | 2069 | ||
2070 | ret = btrfs_run_delayed_items(trans, fs_info); | 2070 | ret = btrfs_run_delayed_items(trans); |
2071 | if (ret) | 2071 | if (ret) |
2072 | goto cleanup_transaction; | 2072 | goto cleanup_transaction; |
2073 | 2073 | ||
@@ -2075,7 +2075,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans) | |||
2075 | extwriter_counter_read(cur_trans) == 0); | 2075 | extwriter_counter_read(cur_trans) == 0); |
2076 | 2076 | ||
2077 | /* some pending stuffs might be added after the previous flush. */ | 2077 | /* some pending stuffs might be added after the previous flush. */ |
2078 | ret = btrfs_run_delayed_items(trans, fs_info); | 2078 | ret = btrfs_run_delayed_items(trans); |
2079 | if (ret) | 2079 | if (ret) |
2080 | goto cleanup_transaction; | 2080 | goto cleanup_transaction; |
2081 | 2081 | ||
@@ -2128,7 +2128,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans) | |||
2128 | * because all the tree which are snapshoted will be forced to COW | 2128 | * because all the tree which are snapshoted will be forced to COW |
2129 | * the nodes and leaves. | 2129 | * the nodes and leaves. |
2130 | */ | 2130 | */ |
2131 | ret = btrfs_run_delayed_items(trans, fs_info); | 2131 | ret = btrfs_run_delayed_items(trans); |
2132 | if (ret) { | 2132 | if (ret) { |
2133 | mutex_unlock(&fs_info->reloc_mutex); | 2133 | mutex_unlock(&fs_info->reloc_mutex); |
2134 | goto scrub_continue; | 2134 | goto scrub_continue; |