From: Zhao Lei Date: Tue, 20 Jan 2015 07:11:40 +0000 (+0800) Subject: Btrfs: Separate finding-right-mirror and writing-to-target's process in scrub_handle_... X-Git-Tag: fixes-v4.0-rc1~50^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6738c1bd74a27ff6a5043c5211c7bff7745420;p=pandora-kernel.git Btrfs: Separate finding-right-mirror and writing-to-target's process in scrub_handle_errored_block() In corrent code, code of finding-right-mirror and writing-to-target are mixed in logic, if we find a right mirror but failed in writing to target, it will treat as "hadn't found right block", and fill the target with sblock_bad. Actually, "failed in writing to target" does not mean "source block is wrong", this patch separate above two condition in logic, and do some cleanup to make code clean. Signed-off-by: Zhao Lei Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed