]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong error handle when the device is missing or is not writeable
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 19 Jun 2014 02:42:55 +0000 (10:42 +0800)
committerChris Mason <clm@fb.com>
Thu, 19 Jun 2014 21:20:56 +0000 (14:20 -0700)
commit879e9430ed7f3c7cfcdb6b3bf9552f96febdd6db
tree870ecde1af3c547ed7e067a86d4fa93740581b0d
parent4625b104d2f7db8c98598d1892977320e52f8ed4
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 <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c