Btrfs: fix wrong error handle when the device is missing or is not writeable
authorMiao Xie <[email protected]>
Thu, 19 Jun 2014 02:42:55 +0000 (10:42 +0800)
committerChris Mason <[email protected]>
Thu, 19 Jun 2014 21:20:56 +0000 (14:20 -0700)
commit8408c716d7a4ddd5954ce33f53a7d3cd2876cf65
tree870ecde1af3c547ed7e067a86d4fa93740581b0d
parentc55f13964008bfea7c5bee268f28b699cbad7f00
Btrfs: fix wrong error handle when the device is missing or is not writeable

The original bio might be submitted, so we shoud increase bi_remaining to
account for it when we deal with the error that the device is missing or
is not writeable, or we would skip the endio handle.

Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/volumes.c