From: Stefan Behrens Date: Fri, 2 Nov 2012 15:14:21 +0000 (+0100) Subject: Btrfs: in scrub repair code, optimize the reading of mirrors X-Git-Tag: v3.8-rc1~71^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb2ced73d8c7a38b5f699e267deadf2a2cfe911c;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed