Btrfs: don't loop forever on bad btree blocks
authorChris Mason <chris.mason@oracle.com>
Sun, 24 Oct 2010 15:01:27 +0000 (11:01 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 13:31:30 +0000 (09:31 -0400)
commitcb44921a09221f0a90217b44044448f63190f3e5
tree5580522b6db6868c02d3072320e338442272cb2b
parent6b5b817f103450444f3f658a498f435d92a197e5
Btrfs: don't loop forever on bad btree blocks

When btrfs discovers the generation number in a btree block is
incorrect, it can loop forever without forcing the RAID
code to try a valid mirror, and without returning EIO.

This changes things to properly kick out the EIO.

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