]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: in scrub repair code, optimize the reading of mirrors
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 2 Nov 2012 15:14:21 +0000 (16:14 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:31 +0000 (17:15 -0500)
commita0a266fda03e81c3190eb9b256a5bab12d2b2d36
tree52d23d374ae31faac4d63b031387e532f577b895
parent073d5dd9ce26f08a8b7e3635779013fc4c4e132c
Btrfs: in scrub repair code, optimize the reading of mirrors

In case that disk blocks need to be repaired (rewritten), the
current code at first (for simplicity reasons) reads all alternate
mirrors in the first step, afterwards selects the best one in a
second step. This is now changed to read one alternate mirror
after the other and to leave the loop early when a perfect mirror
is found.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/scrub.c