Commit f9871edd authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: Remove fs_info from cleanup_ref_head

fs_info can be refenreced from the transaction handle, since it's always
valid. 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 c4d56d4a
...@@ -2565,9 +2565,10 @@ static int cleanup_extent_op(struct btrfs_trans_handle *trans, ...@@ -2565,9 +2565,10 @@ static int cleanup_extent_op(struct btrfs_trans_handle *trans,
} }
static int cleanup_ref_head(struct btrfs_trans_handle *trans, static int cleanup_ref_head(struct btrfs_trans_handle *trans,
struct btrfs_fs_info *fs_info,
struct btrfs_delayed_ref_head *head) struct btrfs_delayed_ref_head *head)
{ {
struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_delayed_ref_root *delayed_refs; struct btrfs_delayed_ref_root *delayed_refs;
int ret; int ret;
...@@ -2722,7 +2723,7 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, ...@@ -2722,7 +2723,7 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
* up and move on to the next ref_head. * up and move on to the next ref_head.
*/ */
if (!ref) { if (!ref) {
ret = cleanup_ref_head(trans, fs_info, locked_ref); ret = cleanup_ref_head(trans, locked_ref);
if (ret > 0 ) { if (ret > 0 ) {
/* We dropped our lock, we need to loop. */ /* We dropped our lock, we need to loop. */
ret = 0; ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment