Btrfs: EIO when we fail to read tree roots
authorChris Mason <chris.mason@oracle.com>
Mon, 13 Dec 2010 19:47:58 +0000 (14:47 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 13 Dec 2010 19:47:58 +0000 (14:47 -0500)
commit68433b73b104bff388aac376631d32abbbd872b0
treeb08c8c07f2f77e3d840b316a66a47af1210ab349
parent3dd1462e82bcab7625cec129952f26dae7a8b742
Btrfs: EIO when we fail to read tree roots

If we just get a plain IO error when we read tree roots, the code
wasn't properly sending that error up the chain.  This allowed mounts to
continue when they should failed, and allowed operations
on partially setup root structs.  The end result was usually oopsen
on spinlocks that hadn't been spun up correctly.

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