Btrfs: Fix crash on read failures at mount
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 22 Jul 2009 20:52:13 +0000 (16:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 22 Jul 2009 20:52:13 +0000 (16:52 -0400)
commit83121942b28daffc9526b14b7843d8cdbd3db641
tree7440a54bdc12e3aa7c268b9b747204dc0e1e2a5e
parentc271b492419a18908ba19ee02b231fb305a27023
Btrfs: Fix crash on read failures at mount

If the tree roots hit read errors during mount, btrfs is not properly
erroring out.  We need to check the uptodate bits after
reading in the tree root node.

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