|
@@ -2444,7 +2444,8 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
|
|
|
spin_unlock(&locked_ref->lock);
|
|
|
spin_lock(&delayed_refs->lock);
|
|
|
spin_lock(&locked_ref->lock);
|
|
|
- if (rb_first(&locked_ref->ref_root)) {
|
|
|
+ if (rb_first(&locked_ref->ref_root) ||
|
|
|
+ locked_ref->extent_op) {
|
|
|
spin_unlock(&locked_ref->lock);
|
|
|
spin_unlock(&delayed_refs->lock);
|
|
|
continue;
|