]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: revert checksum error statistic which can cause a BUG()
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 27 Aug 2012 14:30:03 +0000 (08:30 -0600)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:39 +0000 (16:53 -0400)
commita5ae1287ffb4c68b2dae4c3370918cf9275f9188
tree27980140d38e5158d64f24a5027beb46b52bc476
parent968d6ee347b5e3f8d0456a9b12474a44eb877de8
Btrfs: revert checksum error statistic which can cause a BUG()

Commit da7adf8ab9511c9d618b46a6d22200a87f97bfbf added btrfs device
statistic counters for detected IO and checksum errors to Linux 3.5.
The statistic part that counts checksum errors in
end_bio_extent_readpage() can cause a BUG() in a subfunction:
"kernel BUG at fs/btrfs/volumes.c:3762!"
That part is reverted with the current patch.
However, the counting of checksum errors in the scrub context remains
active, and the counting of detected IO errors (read, write or flush
errors) in all contexts remains active.

Cc: stable <stable@vger.kernel.org> # 3.5
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h