Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20b9a2d6 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba
Browse files

btrfs: Remove fs_info from run_delayed_extent_op



This function is always called with a valid transaction handle so
fs_info can be referenced from there. No functional changes.

Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2bf98ef3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2352,10 +2352,10 @@ static void __run_delayed_extent_op(struct btrfs_delayed_extent_op *extent_op,
}

static int run_delayed_extent_op(struct btrfs_trans_handle *trans,
				 struct btrfs_fs_info *fs_info,
				 struct btrfs_delayed_ref_head *head,
				 struct btrfs_delayed_extent_op *extent_op)
{
	struct btrfs_fs_info *fs_info = trans->fs_info;
	struct btrfs_key key;
	struct btrfs_path *path;
	struct btrfs_extent_item *ei;
@@ -2560,7 +2560,7 @@ static int cleanup_extent_op(struct btrfs_trans_handle *trans,
		return 0;
	}
	spin_unlock(&head->lock);
	ret = run_delayed_extent_op(trans, fs_info, head, extent_op);
	ret = run_delayed_extent_op(trans, head, extent_op);
	btrfs_free_delayed_extent_op(extent_op);
	return ret ? ret : 1;
}