Skip to content

Commit 9a5e1ea

Browse files
committed
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>
1 parent 8c8bee1 commit 9a5e1ea

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/btrfs/ref-cache.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static struct rb_node *tree_insert(struct rb_root *root, u64 bytenr,
6767
while(*p) {
6868
parent = *p;
6969
entry = rb_entry(parent, struct btrfs_leaf_ref, rb_node);
70-
WARN_ON(!entry->in_tree);
7170

7271
if (bytenr < entry->bytenr)
7372
p = &(*p)->rb_left;

0 commit comments

Comments
 (0)