|
@@ -888,7 +888,7 @@ search_again:
|
|
|
|
|
|
delayed_refs = &trans->transaction->delayed_refs;
|
|
|
spin_lock(&delayed_refs->lock);
|
|
|
- head = btrfs_find_delayed_ref_head(trans, bytenr);
|
|
|
+ head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
|
|
|
if (head) {
|
|
|
if (!mutex_trylock(&head->mutex)) {
|
|
|
atomic_inc(&head->node.refs);
|
|
@@ -3041,7 +3041,7 @@ static noinline int check_delayed_ref(struct btrfs_trans_handle *trans,
|
|
|
|
|
|
delayed_refs = &trans->transaction->delayed_refs;
|
|
|
spin_lock(&delayed_refs->lock);
|
|
|
- head = btrfs_find_delayed_ref_head(trans, bytenr);
|
|
|
+ head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
|
|
|
if (!head) {
|
|
|
spin_unlock(&delayed_refs->lock);
|
|
|
return 0;
|
|
@@ -7091,7 +7091,7 @@ static noinline int check_ref_cleanup(struct btrfs_trans_handle *trans,
|
|
|
|
|
|
delayed_refs = &trans->transaction->delayed_refs;
|
|
|
spin_lock(&delayed_refs->lock);
|
|
|
- head = btrfs_find_delayed_ref_head(trans, bytenr);
|
|
|
+ head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
|
|
|
if (!head)
|
|
|
goto out_delayed_unlock;
|
|
|
|