Remove superfluous WARN_ON in btrfsck
authorYan Zheng <zheng.yan@oracle.com>
Thu, 9 Sep 2010 05:42:49 +0000 (13:42 +0800)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Sep 2010 00:26:49 +0000 (20:26 -0400)
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
btrfsck.c

index d8e353e..af5746f 100644 (file)
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -583,7 +583,6 @@ again:
                }
                ret = insert_existing_cache_extent(dst, &ins->cache);
                if (ret == -EEXIST) {
-                       WARN_ON(src == &src_node->root_cache);
                        conflict = get_inode_rec(dst, rec->ino, 1);
                        merge_inode_recs(rec, conflict, dst);
                        if (rec->checked) {