diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-02-07 10:55:42 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 09:09:31 -0400 |
commit | b84acab38f58b775f8cd3f38422c610a75b3eb70 (patch) | |
tree | 6b7081407537b8f4091944d0c7a14c68e59edd84 /fs/btrfs/delayed-inode.c | |
parent | 21217054203cd10f26ba133352046895c16cd3de (diff) |
btrfs: Don't pass fs_info to __btrfs_run_delayed_items
We already pass the transaction handle, which contains a refrence to
the fs_info so grab it from there. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
-rw-r--r-- | fs/btrfs/delayed-inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 0530f6f2e4ba..1acc03680e9c 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c | |||
@@ -1115,9 +1115,9 @@ __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, | |||
1115 | * Returns < 0 on error and returns with an aborted transaction with any | 1115 | * Returns < 0 on error and returns with an aborted transaction with any |
1116 | * outstanding delayed items cleaned up. | 1116 | * outstanding delayed items cleaned up. |
1117 | */ | 1117 | */ |
1118 | static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, | 1118 | static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) |
1119 | struct btrfs_fs_info *fs_info, int nr) | ||
1120 | { | 1119 | { |
1120 | struct btrfs_fs_info *fs_info = trans->fs_info; | ||
1121 | struct btrfs_delayed_root *delayed_root; | 1121 | struct btrfs_delayed_root *delayed_root; |
1122 | struct btrfs_delayed_node *curr_node, *prev_node; | 1122 | struct btrfs_delayed_node *curr_node, *prev_node; |
1123 | struct btrfs_path *path; | 1123 | struct btrfs_path *path; |
@@ -1165,13 +1165,13 @@ static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, | |||
1165 | int btrfs_run_delayed_items(struct btrfs_trans_handle *trans, | 1165 | int btrfs_run_delayed_items(struct btrfs_trans_handle *trans, |
1166 | struct btrfs_fs_info *fs_info) | 1166 | struct btrfs_fs_info *fs_info) |
1167 | { | 1167 | { |
1168 | return __btrfs_run_delayed_items(trans, fs_info, -1); | 1168 | return __btrfs_run_delayed_items(trans, -1); |
1169 | } | 1169 | } |
1170 | 1170 | ||
1171 | int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, | 1171 | int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, |
1172 | struct btrfs_fs_info *fs_info, int nr) | 1172 | struct btrfs_fs_info *fs_info, int nr) |
1173 | { | 1173 | { |
1174 | return __btrfs_run_delayed_items(trans, fs_info, nr); | 1174 | return __btrfs_run_delayed_items(trans, nr); |
1175 | } | 1175 | } |
1176 | 1176 | ||
1177 | int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, | 1177 | int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, |