btrfs: Drop fs_info parameter from __btrfs_run_delayed_refs
authorNikolay Borisov <nborisov@suse.com>
Thu, 15 Mar 2018 14:00:27 +0000 (16:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:41:11 +0000 (01:41 +0200)
It's provided by transaction handle.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c

index 9100a534d539c2823e15d13e19a5c8ce3986a666..1b54d9a9d938b5d9da284996453c4d3f5364be2c 100644 (file)
@@ -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,
  * 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)
 {
                                             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;
        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;
        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;
        if (ret < 0) {
                btrfs_abort_transaction(trans, ret);
                return ret;