]> 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)
commit75611a838e13a01160b7226c00ffaa265a8b810a
tree27980140d38e5158d64f24a5027beb46b52bc476
parent525e1aadecfb67cc457ef3a61d62b482efed2400
Btrfs: revert checksum error statistic which can cause a BUG()

Commit 9bc01bd6326ae4dce50ceb45810573c4c476e6ae 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