]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: drop WARN_ON from btrfs_add_leaf_ref
authorChris Mason <chris.mason@oracle.com>
Mon, 29 Sep 2008 15:24:41 +0000 (11:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 29 Sep 2008 15:24:41 +0000 (11:24 -0400)
btrfs_add_leaf_ref was doing checks on the objects it found in the
rbtree to make sure they were properly linked into the tree.  But, the field
it was checking can be safely changed outside of the tree spin lock.

The WARN_ON was for debugging the initial implementation and can be
safely removed.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ref-cache.c

index c5809988c875bf003f3d60c7a81ca8007b8b4572..30fcb7aea5b5e709298fb813193f431738c811b1 100644 (file)
@@ -67,7 +67,6 @@ static struct rb_node *tree_insert(struct rb_root *root, u64 bytenr,
        while(*p) {
                parent = *p;
                entry = rb_entry(parent, struct btrfs_leaf_ref, rb_node);
-               WARN_ON(!entry->in_tree);
 
                if (bytenr < entry->bytenr)
                        p = &(*p)->rb_left;