diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-03-15 16:00:27 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:41:11 +0200 |
commit | 0a1e458a1e49dc6cf13b05f81098e01cf79ceaa1 (patch) | |
tree | 7dc965aa95e0425cb7ddd758d523fb6dd8fff072 /fs | |
parent | 5ead2dd02c776e2acf50d5a8cd31a90513f45433 (diff) |
btrfs: Drop fs_info parameter from __btrfs_run_delayed_refs
It's provided by transaction handle.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 9100a534d539..1b54d9a9d938 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -2650,9 +2650,9 @@ static int cleanup_ref_head(struct btrfs_trans_handle *trans, * Returns -ENOMEM or -EIO on failure and will abort the transaction. */ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, unsigned long nr) { + struct btrfs_fs_info *fs_info = trans->fs_info; struct btrfs_delayed_ref_root *delayed_refs; struct btrfs_delayed_ref_node *ref; struct btrfs_delayed_ref_head *locked_ref = NULL; @@ -3077,7 +3077,7 @@ again: delayed_refs->run_delayed_start = find_middle(&delayed_refs->root); #endif trans->can_flush_pending_bgs = false; - ret = __btrfs_run_delayed_refs(trans, fs_info, count); + ret = __btrfs_run_delayed_refs(trans, count); if (ret < 0) { btrfs_abort_transaction(trans, ret); return ret; |