mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
2121705420
commit
b84acab38f
1 changed files with 4 additions and 4 deletions
|
@ -1115,9 +1115,9 @@ __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
|
||||||
* Returns < 0 on error and returns with an aborted transaction with any
|
* Returns < 0 on error and returns with an aborted transaction with any
|
||||||
* outstanding delayed items cleaned up.
|
* outstanding delayed items cleaned up.
|
||||||
*/
|
*/
|
||||||
static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
|
static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr)
|
||||||
struct btrfs_fs_info *fs_info, int nr)
|
|
||||||
{
|
{
|
||||||
|
struct btrfs_fs_info *fs_info = trans->fs_info;
|
||||||
struct btrfs_delayed_root *delayed_root;
|
struct btrfs_delayed_root *delayed_root;
|
||||||
struct btrfs_delayed_node *curr_node, *prev_node;
|
struct btrfs_delayed_node *curr_node, *prev_node;
|
||||||
struct btrfs_path *path;
|
struct btrfs_path *path;
|
||||||
|
@ -1165,13 +1165,13 @@ static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
|
||||||
int btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
|
int btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_fs_info *fs_info)
|
struct btrfs_fs_info *fs_info)
|
||||||
{
|
{
|
||||||
return __btrfs_run_delayed_items(trans, fs_info, -1);
|
return __btrfs_run_delayed_items(trans, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
|
int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_fs_info *fs_info, int nr)
|
struct btrfs_fs_info *fs_info, int nr)
|
||||||
{
|
{
|
||||||
return __btrfs_run_delayed_items(trans, fs_info, nr);
|
return __btrfs_run_delayed_items(trans, nr);
|
||||||
}
|
}
|
||||||
|
|
||||||
int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
|
int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue