Message ID | 1360392122-5934-1-git-send-email-bo.li.liu@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 61da9d0..7e7884f 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -2500,6 +2500,12 @@ again: ret = run_clustered_refs(trans, root, &cluster); if (ret < 0) { + if (!list_empty(&cluster)) { + struct list_head *pos, *next; + + list_for_each_safe(pos, next, &cluster); + list_del_init(pos); + } spin_unlock(&delayed_refs->lock); btrfs_abort_transaction(trans, root, ret); return ret;