]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs scrub: bugfix: mirror_num off by one
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Mon, 13 Jun 2011 17:56:54 +0000 (19:56 +0200)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 01:02:49 +0000 (20:02 -0500)
commit31464cd046728cb00e485759ae6fc3c30b3a6d0b
treed21ed87a077cc9e0f9c0645c9da956402887a143
parente32867cec461d7bb9f03483c660a308068397ac3
btrfs scrub: bugfix: mirror_num off by one

Fix the mirror_num determination in scrub_stripe. The rest of the scrub code
did not use mirror_num for anything important and that error went unnoticed.
The nodatasum fixup patch of this set depends on a correct mirror_num.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
(cherry picked from commit 193ea74b2729e6ddc08fb6bde6e15a3bd4d94071)
fs/btrfs/scrub.c