X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=repair.c;h=07a1232e02aded245ae36772dfaeb68f00fcd7fe;hb=3491d6277886ddc55643a133d0ebf05a4e0053ed;hp=e6404653971cf8dfa0ef8bb5157e97878ebd8125;hpb=af00db292e74b22c51cd95f1db5db2a594804d09;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/repair.c b/repair.c index e640465..07a1232 100644 --- a/repair.c +++ b/repair.c @@ -21,6 +21,8 @@ #include "utils.h" #include "repair.h" +int repair = 0; + int btrfs_add_corrupt_extent_record(struct btrfs_fs_info *info, struct btrfs_key *first_key, u64 start, u64 len, int level) @@ -41,7 +43,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);