]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Btrfs: remove some WARN_ONs in the IO failure path
authorChris Mason <chris.mason@oracle.com>
Thu, 14 May 2009 17:31:21 +0000 (13:31 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 14 May 2009 18:00:33 +0000 (14:00 -0400)
These debugging WARN_ONs make too much console noise during regular
IO failures.  An IO failure will still generate a number of messages
as we verify checksums etc, but these two are not needed.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/inode.c

index 0ff16d3331da4c12cf33afa41dbde1a735c6dce3..4b0ea0b80c234b11bc0861038749f83c58f38e70 100644 (file)
@@ -848,8 +848,6 @@ struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr,
 
        if (ret == 0)
                set_bit(EXTENT_BUFFER_UPTODATE, &buf->bflags);
-       else
-               WARN_ON(1);
        return buf;
 
 }
index 22450bd972df9c3d2638a2bbc322a8386d004edb..1c8b0190d0317104d9d5e3a412f4c469d0ed5038 100644 (file)
@@ -4296,7 +4296,6 @@ out:
        }
        if (err) {
                free_extent_map(em);
-               WARN_ON(1);
                return ERR_PTR(err);
        }
        return em;