diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-01-20 10:11:40 +0300 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-01-22 05:06:49 +0300 |
commit | 8d6738c1bd74a27ff6a5043c5211c7bff7745420 (patch) | |
tree | 5a62834b17957c5ec0bb274799864e4274a11eb6 /fs/btrfs/props.h | |
parent | dc5f7a3bd820883793bb0d9789e938a34aa4da5f (diff) | |
download | linux-8d6738c1bd74a27ff6a5043c5211c7bff7745420.tar.xz |
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 <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/props.h')
0 files changed, 0 insertions, 0 deletions