Message ID | 1397101727-20806-14-git-send-email-bo.li.liu@oracle.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 4c1c342..1cb3ec5 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -5931,6 +5931,7 @@ again: btrfs_release_path(path); root_objectid = BTRFS_DEDUP_TREE_OBJECTID; parent = 0; + refs_to_drop = 1; goto again; }
We need to reset @refs_to_drop to 1 when we're going to delete the last special dedup reference, otherwise we can trigger (@refs < @refs_to_drop) and end up with transaction abortion. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> --- fs/btrfs/extent-tree.c | 1 + 1 file changed, 1 insertion(+)