From: Chris Mason Date: Thu, 28 Oct 2010 19:30:42 +0000 (-0400) Subject: Btrfs: fix raid code for removing missing drives X-Git-Tag: v2.6.37-rc1~19^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18e503d695ff8ff9a43768555aa74575bf6b77f3;p=pandora-kernel.git Btrfs: fix raid code for removing missing drives When btrfs is mounted in degraded mode, it has some internal structures to track the missing devices. This missing device is setup as readonly, but the mapping code can get upset when we try to write to it. This changes the mapping code to return -EIO instead of oops when we try to write to the readonly device. Signed-off-by: Chris Mason --- Reading git-diff-tree failed