summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ref-cache.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-09-29 17:24:41 +0200
committerChris Mason <chris.mason@oracle.com>2008-09-29 17:24:41 +0200
commit9a5e1ea1e1e539e244a54afffc330fc368376ab9 (patch)
tree87b48444ba411ff6d87a87190faf5a3d912765d1 /fs/btrfs/ref-cache.c
parentBtrfs: Wait for IO on the block device inodes of newly added devices (diff)
downloadlinux-9a5e1ea1e1e539e244a54afffc330fc368376ab9.tar.xz
linux-9a5e1ea1e1e539e244a54afffc330fc368376ab9.zip
Btrfs: drop WARN_ON from btrfs_add_leaf_ref
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>
Diffstat (limited to 'fs/btrfs/ref-cache.c')
-rw-r--r--fs/btrfs/ref-cache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/ref-cache.c b/fs/btrfs/ref-cache.c
index c5809988c875..30fcb7aea5b5 100644
--- a/fs/btrfs/ref-cache.c
+++ b/fs/btrfs/ref-cache.c
@@ -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;