btrfs-progs: configure: check if xmlto exists at configure time
[platform/upstream/btrfs-progs.git] / repair.c
index e640465..07a1232 100644 (file)
--- 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);