summaryrefslogtreecommitdiff
path: root/repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'repair.c')
-rw-r--r--repair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repair.c b/repair.c
index e6404653..4f747421 100644
--- a/repair.c
+++ b/repair.c
@@ -41,7 +41,7 @@ int btrfs_add_corrupt_extent_record(struct btrfs_fs_info *info,
corrupt->cache.size = len;
corrupt->level = level;
- ret = insert_existing_cache_extent(info->corrupt_blocks, &corrupt->cache);
+ ret = insert_cache_extent(info->corrupt_blocks, &corrupt->cache);
if (ret)
free(corrupt);
BUG_ON(ret && ret != -EEXIST);