|
@@ -2440,6 +2440,8 @@ static noinline int run_clustered_refs(struct btrfs_trans_handle *trans,
|
|
|
default:
|
|
|
WARN_ON(1);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ list_del_init(&locked_ref->cluster);
|
|
|
}
|
|
|
spin_unlock(&delayed_refs->lock);
|
|
|
|
|
@@ -2462,7 +2464,6 @@ static noinline int run_clustered_refs(struct btrfs_trans_handle *trans,
|
|
|
* list before we release it.
|
|
|
*/
|
|
|
if (btrfs_delayed_ref_is_head(ref)) {
|
|
|
- list_del_init(&locked_ref->cluster);
|
|
|
btrfs_delayed_ref_unlock(locked_ref);
|
|
|
locked_ref = NULL;
|
|
|
}
|