diff options
author | Zhao Lei <[email protected]> | 2015-01-20 15:11:40 +0800 |
---|---|---|
committer | Chris Mason <[email protected]> | 2015-01-21 18:06:49 -0800 |
commit | 8d6738c1bd74a27ff6a5043c5211c7bff7745420 (patch) | |
tree | 5a62834b17957c5ec0bb274799864e4274a11eb6 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | dc5f7a3bd820883793bb0d9789e938a34aa4da5f (diff) |
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 <[email protected]>
Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions