]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc9a6df2716f623d33bfddd72c254709e4a01c68
treeb08c8c07f2f77e3d840b316a66a47af1210ab349
parent70eb22f88538871bb2a82c163f27424e717d13fe
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