]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't count I/O statistic read errors for missing devices
authorStefan Behrens <sbehrens@giantdisaster.de>
Thu, 14 Jun 2012 14:42:31 +0000 (16:42 +0200)
committerChris Mason <chris.mason@fusionio.com>
Mon, 2 Jul 2012 19:36:23 +0000 (15:36 -0400)
commit7de5a339db890d2848d85bb72245a16cf5abe626
tree5fcd3c7c3ae4a28001eaea8ab0ea0ef48e456647
parente2f74b3223faf8cf58ea1e998dd8d74a1ef76d54
Btrfs: don't count I/O statistic read errors for missing devices

It is normal behaviour of the low level btrfs function btrfs_map_bio()
to complete a bio with -EIO if the device is missing, instead of just
preventing the bio creation in an earlier step.
This used to cause I/O statistic read error increments and annoying
printk_ratelimited messages. This commit fixes the issue.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reported-by: Carey Underwood <cwillu@cwillu.com>
fs/btrfs/volumes.c