btrfs-progs: Fix printf format casting errors
[platform/upstream/btrfs-progs.git] / extent-cache.c
index 4e6d1b2..b871e18 100644 (file)
@@ -96,10 +96,13 @@ int insert_existing_cache_extent(struct cache_tree *tree,
                                 struct cache_extent *pe)
 {
        struct rb_node *found;
+       struct cache_extent *entry;
 
        found = tree_insert(&tree->root, pe->start, pe->size, &pe->rb_node);
-       if (found)
+       if (found) {
+               entry = rb_entry(found, struct cache_extent, rb_node);
                return -EEXIST;
+       }
        return 0;
 }