btrfs: do not warn if we can't find the reloc root when looking up backref
[sfrench/cifs-2.6.git] / fs / btrfs / backref.c
index 701124c3e0b140060316682c31faee40d395de05..f47c1528eb9a69aeba5f2cd0740333a05aa9238d 100644 (file)
@@ -2623,7 +2623,7 @@ static int handle_direct_tree_backref(struct btrfs_backref_cache *cache,
                /* Only reloc backref cache cares about a specific root */
                if (cache->is_reloc) {
                        root = find_reloc_root(cache->fs_info, cur->bytenr);
-                       if (WARN_ON(!root))
+                       if (!root)
                                return -ENOENT;
                        cur->root = root;
                } else {